-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plasma-new-hope): add DatePicker
- Loading branch information
1 parent
4b64c19
commit 5c649c1
Showing
28 changed files
with
1,052 additions
and
26 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
137 changes: 137 additions & 0 deletions
137
packages/plasma-new-hope/src/components/DatePicker/DatePicker.tokens.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
export const classes = { | ||
datePickerError: 'date-picker-error', | ||
datePickerSuccess: 'date-picker-success', | ||
}; | ||
|
||
export const tokens = { | ||
/** Токены лейбла */ | ||
labelColor: '--plasma-date-picker__label-color', | ||
labelColorReadOnly: '--plasma-date-picker__label-color-readonly', | ||
labelOffset: '--plasma-date-picker__label-offset', | ||
|
||
labelFontFamily: '--plasma-date-picker__label-font-family', | ||
labelFontStyle: '--plasma-date-picker__label-font-style', | ||
labelFontSize: '--plasma-date-picker__label-font-size', | ||
labelFontWeight: '--plasma-date-picker__label-font-weight', | ||
labelLetterSpacing: '--plasma-date-picker__label-letter-spacing', | ||
labelLineHeight: '--plasma-date-picker__label-line-height', | ||
|
||
/** Токены вспомогательного текста */ | ||
leftHelperColor: '--plasma-date-picker__left-helper-color', | ||
leftHelperColorReadOnly: '--plasma-date-picker__left-helper-color-readonly', | ||
leftHelperOffset: '--plasma-date-picker__left-helper-offset', | ||
|
||
leftHelperFontFamily: '--plasma-date-picker__left-helper-font-family', | ||
leftHelperFontStyle: '--plasma-date-picker__left-helper-font-style', | ||
leftHelperFontSize: '--plasma-date-picker__left-helper-font-size', | ||
leftHelperFontWeight: '--plasma-date-picker__left-helper-font-weight', | ||
leftHelperLetterSpacing: '--plasma-date-picker__left-helper-letter-spacing', | ||
leftHelperLineHeight: '--plasma-date-picker__left-helper-line-height', | ||
|
||
/** Прозрачность для всего компонента в состоянии disabled */ | ||
disabledOpacity: '--plasma-date-picker-disabled-opacity', | ||
|
||
/** Цвет обводки поля ввода при фокусе */ | ||
focusColor: '--plasma-date-picker-focus-color', | ||
|
||
/** Токены полей ввода */ | ||
textFieldColor: '--plasma-date-picker-textfield-color', | ||
textFieldFocusColor: '--plasma-date-picker-textfield-focus-color', | ||
textFieldPlaceholderColor: '--plasma-date-picker-textfield-placeholder-color', | ||
textFieldCaretColor: '--plasma-date-picker-textfield-caret-color', | ||
|
||
textFieldBackgroundColor: '--plasma-date-picker-textfield-background-color', | ||
textFieldBackgroundColorHover: '--plasma-date-picker-textfield-background-color-hover', | ||
textFieldBackgroundColorFocus: '--plasma-date-picker-textfield-background-color-focus', | ||
textFieldBackgroundErrorColor: '--plasma-date-picker-textfield-background-color-error', | ||
textFieldBackgroundErrorColorHover: '--plasma-date-picker-textfield-background-color-error-hover', | ||
textFieldBackgroundErrorColorFocus: '--plasma-date-picker-textfield-background-color-error-focus', | ||
textFieldBackgroundSuccessColor: '--plasma-date-picker-textfield-background-color-success', | ||
textFieldBackgroundSuccessColorHover: '--plasma-date-picker-textfield-background-color-success-hover', | ||
textFieldBackgroundSuccessColorFocus: '--plasma-date-picker-textfield-background-color-success-focus', | ||
|
||
textFieldBorderColor: '--plasma-date-picker-textfield-border-color', | ||
textFieldBorderColorHover: '--plasma-date-picker-textfield-border-color-hover', | ||
textFieldBorderColorFocus: '--plasma-date-picker-textfield-border-color-focus', | ||
textFieldBorderColorError: '--plasma-date-picker-textfield-border-color-error', | ||
textFieldBorderColorErrorHover: '--plasma-date-picker-textfield-border-color-error-hover', | ||
textFieldBorderColorErrorFocus: '--plasma-date-picker-textfield-border-color-error-focus', | ||
textFieldBorderColorSuccess: '--plasma-date-picker-textfield-border-color-success', | ||
textFieldBorderColorSuccessHover: '--plasma-date-picker-textfield-border-color-success-hover', | ||
textFieldBorderColorSuccessFocus: '--plasma-date-picker-textfield-border-color-success-focus', | ||
|
||
textFieldColorReadOnly: '--plasma-date-picker-textfield-color-readonly', | ||
textFieldBackgroundColorReadOnly: '--plasma-date-picker-textfield-background-color-readonly', | ||
textFieldBorderColorReadOnly: '--plasma-date-picker-textfield-border-color-readonly', | ||
textFieldPlaceholderColorReadOnly: '--plasma-date-picker-textfield-placeholder-color-readonly', | ||
|
||
textFieldHeight: '--plasma-date-picker-textfield-height', | ||
textFieldBorderWidth: '--plasma-date-picker-textfield-border-width', | ||
textFieldBorderRadius: '--plasma-date-picker-textfield-border-radius', | ||
textFieldPadding: '--plasma-date-picker-textfield-padding', | ||
textFieldLeftContentMargin: '--plasma-date-picker-textfield__left-content-margin', | ||
textFieldRightContentMargin: '--plasma-date-picker-textfield__right-content-margin', | ||
textFieldFontFamily: '--plasma-date-picker-textfield-font-family', | ||
textFieldFontStyle: '--plasma-date-picker-textfield-font-style', | ||
textFieldFontSize: '--plasma-date-picker-textfield-font-size', | ||
textFieldFontWeight: '--plasma-date-picker-textfield-font-weight', | ||
textFieldLetterSpacing: '--plasma-date-picker-textfield-letter-spacing', | ||
textFieldLineHeight: '--plasma-date-picker-textfield-line-height', | ||
|
||
textFieldTextBeforeColor: '--plasma-date-picker-textfield__before-text-color', | ||
textFieldTextAfterColor: '--plasma-date-picker-textfield__after-text-color', | ||
textFieldTextBeforeMargin: '--plasma-date-picker-textfield__before-text-margin', | ||
textFieldTextAfterMargin: '--plasma-date-picker-textfield__after-text-margin', | ||
|
||
/** Токены календаря */ | ||
calendarShadow: '--plasma-date-picker-calendar-shadow', | ||
calendarBackgroundColor: '--plasma-date-picker-calendar-background', | ||
calendarItemBorderRadius: '--plasma-date-picker-calendar-item-border-radius', | ||
calendarSelectedItemBackground: '--plasma-date-picker-calendar-selected-item-background', | ||
calendarSelectedItemColor: '--plasma-date-picker-calendar-selected-item-color', | ||
calendarSelectableItemBackgroundHover: '--plasma-date-picker-calendar-selectable-item-bg-hover', | ||
calendarCurrentItemBorderColor: '--plasma-date-picker-calendar-current-item-border-color', | ||
calendarCurrentItemBackgroundHover: '--plasma-date-picker-calendar-current-item-bg-hover', | ||
calendarCurrentItemColorHover: '--plasma-date-picker-calendar-current-item-color-hover', | ||
calendarCurrentItemChildBackgroundHover: '--plasma-date-picker-calendar-current-item-child-bg-hover', | ||
calendarActiveItemBackground: '--plasma-date-picker-calendar-active-item-bg', | ||
calendarActiveItemColor: '--plasma-date-picker-calendar-active-item-color', | ||
calendarHoveredItemBackground: '--plasma-date-picker-calendar-hovered-item-bg', | ||
calendarHoveredItemColor: '--plasma-date-picker-calendar-hovered-item-color', | ||
calendarSeparatorBackground: '--plasma-date-picker-calendar-separator-background', | ||
calendarRangeBackground: '--plasma-date-picker-calendar-range-background', | ||
calendarOutlineFocusColor: '--plasma-date-picker-calendar-outline-focus-color', | ||
calendarContentPrimaryColor: '--plasma-date-picker-calendar-content-primary-color', | ||
calendarContentSecondaryColor: '--plasma-date-picker-calendar-content-secondary-color', | ||
|
||
calendarHeaderArrowContainerWidth: '--plasma-date-picker-calendar-arrow-container-width', | ||
|
||
calendarHeaderFontFamily: '--plasma-date-picker-calendar-header-font-family', | ||
calendarHeaderFontSize: '--plasma-date-picker-calendar-header-font-size', | ||
calendarHeaderFontStyle: '--plasma-date-picker-calendar-header-font-style', | ||
calendarHeaderFontLetterSpacing: '--plasma-date-picker-calendar-header-font-letter-spacing', | ||
calendarHeaderFontLineHeight: '--plasma-date-picker-calendar-header-line-height', | ||
calendarHeaderFontWeight: '--plasma-date-picker-calendar-header-font-weight', | ||
calendarHeaderFontWeightBold: '--plasma-date-picker-calendar-header-font-weight-bold', | ||
|
||
calendarYearFontFamily: '--plasma-date-picker-calendar-year-font-family', | ||
calendarYearFontSize: '--plasma-date-picker-calendar-year-font-size', | ||
calendarYearFontStyle: '--plasma-date-picker-calendar-year-font-style', | ||
calendarYearFontLetterSpacing: '--plasma-date-picker-calendar-year-font-letter-spacing', | ||
calendarYearFontLineHeight: '--plasma-date-picker-calendar-year-line-height', | ||
calendarYearFontWeight: '--plasma-date-picker-calendar-year-font-weight', | ||
|
||
calendarMonthFontFamily: '--plasma-date-picker-calendar-month-font-family', | ||
calendarMonthFontSize: '--plasma-date-picker-calendar-month-font-size', | ||
calendarMonthFontStyle: '--plasma-date-picker-calendar-month-font-style', | ||
calendarMonthFontLetterSpacing: '--plasma-date-picker-calendar-month-font-letter-spacing', | ||
calendarMonthFontLineHeight: '--plasma-date-picker-calendar-month-line-height', | ||
calendarMonthFontWeight: '--plasma-date-picker-calendar-month-font-weight', | ||
|
||
calendarDayFontFamily: '--plasma-date-picker-calendar-day-font-family', | ||
calendarDayFontSize: '--plasma-date-picker-calendar-day-font-size', | ||
calendarDayFontStyle: '--plasma-date-picker-calendar-day-font-style', | ||
calendarDayFontLetterSpacing: '--plasma-date-picker-calendar-day-font-letter-spacing', | ||
calendarDayFontLineHeight: '--plasma-date-picker-calendar-day-line-height', | ||
calendarDayFontWeight: '--plasma-date-picker-calendar-day-font-weight', | ||
}; |
Oops, something went wrong.