Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
4ac21fd
inputtext: стилизация, сторисы, токены
Mar 25, 2026
b01abf8
Merge branch 'storybook-update' into form/InputText
khaliulin Mar 25, 2026
ff79fd4
фикс подключения popover
Mar 26, 2026
93b5742
Merge branch 'storybook-update' into form/InputText
khaliulin Mar 26, 2026
b60dd74
удалён лишний импорт popover
Mar 26, 2026
ed4422e
фикс FloatLabel; добавление пропса label
Mar 27, 2026
ebb6c1d
фикс позиционирования label для float label
Mar 27, 2026
66983e4
фикс: float label без кастомного стиля
Mar 27, 2026
3d54259
фикс базы токенов для стилизации padding
Mar 31, 2026
e54ceed
InputText: фикс positionX для floatlabel
Apr 1, 2026
6af2be5
фикс скрытия кнопки удаления результата ввода
Apr 3, 2026
c14c899
подключение стилей для metergroup; комментарии
Apr 3, 2026
5d5bbd6
удаление референсной папки figma mcp
Apr 3, 2026
e682082
создан компонент-обёртка с инкапсулированной логикой очистки
Apr 6, 2026
fe2f3ee
revert: восстановление metergroup.ts до состояния базовой ветки
Apr 6, 2026
a3ab9e1
комментрий для поля size с объяснением, что xlarge работает через CSS…
Apr 6, 2026
be1a2a2
required label для поля
Apr 6, 2026
75dcebb
резолв конфликтов
Apr 9, 2026
a366e03
отключение отсутствующего файла rating
Apr 9, 2026
3dc9a86
Merge remote-tracking branch 'origin/storybook-update' into form/Inpu…
Skosov Apr 17, 2026
edbe9c2
css: удалены дублирующие импорты компонентных CSS из css.ts
khaliulin Apr 18, 2026
a8063dd
inputtext: InputTextClear вынесен в PBlockInputTextClear с наследован…
khaliulin Apr 18, 2026
abbb244
css: убран неиспользуемый параметр dt из глобальной функции
khaliulin Apr 18, 2026
6a0c8e9
PBlockInputText: переименование, clearable проп, кастом через пропсы
Apr 23, 2026
9d6fb81
PBlockInputText: замена style scoped на scss
Apr 23, 2026
294789b
PBlockInputText: добавлен эмит value-change
Apr 23, 2026
c872022
PBlockInputText: слот clear-icon для кастомной иконки
Apr 23, 2026
699836c
PBlockInputText: замена шрифтовой иконки на SVG импорт
Apr 23, 2026
072be40
PBlockInputText: xlarge размер через проп size
Apr 23, 2026
d1cee21
inputtext: стили фокуса, disabled, readonly, invalid+focus
Apr 23, 2026
3a930f5
inputtext: сторисы Disabled, Readonly, Invalid, FloatLabel, FloatLabe…
Apr 23, 2026
c341aa7
PBlockInputText: @tabler/icons-vue вместо SVG импорта
Apr 24, 2026
44b3818
PBlockInputText: убран v-else, v-if на иконку очистки
Apr 24, 2026
db83922
inputtext: алиас @ вместо относительных путей в импортах
Apr 24, 2026
571408e
inputtext: PBlockInputText вместо InputText во всех сторисах
Apr 24, 2026
abff958
inputtext: актуализация пропсов и сниппетов для PBlockInputText, удал…
Apr 24, 2026
403ba7f
inputtext: удалена секция ClearButton из MDX документации
Apr 24, 2026
ad328cd
PBlockInputText: clearable → showClear, удалён variant для паритета с…
Apr 24, 2026
8fb7169
PBlockInputText: наследование InputTextProps, v-bind для проброса про…
Apr 24, 2026
d65c072
PBlockInputText: fix lint warning для unused showClear в деструктуриз…
Apr 24, 2026
efa78f0
PBlockInputText: @vue-ignore для extends InputTextProps (compiler-sfc…
Apr 24, 2026
1d03b91
PBlockInputText: v-show вместо v-if для иконки очистки, fluid на Icon…
Apr 24, 2026
ff9dd36
PBlockInputText: явное определение modelValue и fluid в интерфейсе (@…
Apr 24, 2026
af6611b
PBlockInputText: inheritAttrs false, проброс $attrs на InputText вмес…
Apr 24, 2026
b50be07
PBlockInputText: fluid управляет шириной, убран принудительный width …
Apr 24, 2026
96695a7
PBlockInputText: удалён неактуальный svg/x.svg (используется @tabler/…
Apr 24, 2026
954f62f
PBlockInputText: БЭМ-модификатор p-block-inputtext--fluid вместо p-fluid
Apr 24, 2026
ad0d0a2
PBlockInputText: проп hasFloatlabel с инкапсулированным FloatLabel
Apr 24, 2026
cc65cfa
PBlockInputText: токен spacing вместо пикселей для margin-left required
Apr 24, 2026
8af21ba
PBlockInputText: подкомпонент PBlockInputTextField, устранение дублир…
Apr 24, 2026
ff2985d
удалён неактуальный PBlockInputTextClear (заменён PBlockInputText)
Apr 24, 2026
825ea8a
PBlockInputTextField: размер иконки очистки в rem вместо пикселей
Apr 27, 2026
67e2262
inputtext: описание прямого использования FloatLabel + PBlockInputTex…
Apr 27, 2026
6cac85c
inputtext: описание прямого использования FloatLabel + PBlockInputTex…
Apr 27, 2026
0bc6161
редактирование описания для FloatLabel
Apr 27, 2026
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: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ coverage
.npmrc

storybook-static

.claude/*
1 change: 0 additions & 1 deletion figma-console-mcp
Submodule figma-console-mcp deleted from 61942b
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"@mdx-js/react": "^3.1.1",
"@primevue/auto-import-resolver": "4.3.6",
"@primevue/themes": "4.3.6",
"@tabler/icons-vue": "^3.41.1",
"@tabler/icons-webfont": "^3.22.0",
"@vee-validate/rules": "^4.7.3",
"lodash": "^4.17.21",
Expand Down
57 changes: 30 additions & 27 deletions src/plugins/prime/stories/Form/InputText/InputText.mdx
Original file line number Diff line number Diff line change
@@ -1,42 +1,45 @@
import { Meta, Story } from '@storybook/addon-docs/blocks';
import { Meta, Canvas, Controls, Title, Description } from '@storybook/addon-docs/blocks';
import * as InputTextStories from './InputText.stories';

import { Template, TemplateWithIcons } from './InputText.template';

<Meta of={InputTextStories} />

# InputText
<Title />
<Description />

[PrimeVue InputText](https://primevue.org/inputtext), [Макет](https://www.figma.com/design/4TYeki0MDLhfPGJstbIicf/UI-kit-PrimeFace-\(DS\)?node-id=484-5470\&node-type=section\&t=2PSg63p2UfJ4cUzB-0)
## Варианты использования

```html dark
<PrimeInputText v-model="value" placeholder="InputText" />
```
### Default
Базовый пример компонента. Используйте Controls для интерактивного изменения пропсов.
<Canvas of={InputTextStories.Default} />

<Story of={InputTextStories.Primary} />
#### Список параметров
<Controls of={InputTextStories.Default} />

# С иконками
### Disabled
Отключённое состояние.
<Canvas of={InputTextStories.Disabled} />

Логика на работу крестика не прописана в ui-ките, на данный момент должна быть прописана на стороне приложения
### Readonly
Режим только для чтения.
<Canvas of={InputTextStories.Readonly} />

```html dark
<script setup>
const inputValue = ref('');
### Invalid
Невалидное состояние.
<Canvas of={InputTextStories.Invalid} />

const onClickDelete = () => {
inputValue.value = '';
};
</script>
### FloatLabel
Интеграция с `FloatLabel` — плавающая метка внутри поля.
<Canvas of={InputTextStories.FloatLabel} />

<template>
<PrimeIconField>
<PrimeInputText v-model=inputValue placeholder="Normal" />
<PrimeInputIcon @click="onClickDelete">
<i class="ti ti-x" />
</PrimeInputIcon>
</PrimeIconField>
</template>
Возможно использование `FloatLabel` и `PBlockInputText` напрямую:

```vue
<FloatLabel variant="in">
<PBlockInputText id="name" v-model="value" variant="filled" />
<label for="name">Имя<span class="text-red-500">*</span></label>
</FloatLabel>
```

<Story of={InputTextStories.WithIcons} />
### FloatLabel + Invalid
FloatLabel с невалидным состоянием.
<Canvas of={InputTextStories.FloatLabelInvalid} />
Loading
Loading