triafly-ui-kit 1.0.116 → 1.0.117

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/assets/src/components/Ui/DatePicker/DatePicker.css +1 -1
  2. package/dist/assets/src/components/Ui/DropdownSearchInput/DropdownSearchInput.css +1 -1
  3. package/dist/assets/src/components/Ui/Radio/Radio.css +1 -1
  4. package/dist/assets/src/components/Ui/Switch/Switch.css +1 -1
  5. package/dist/assets/src/components/Ui/TextInput/TextInput.css +1 -1
  6. package/dist/assets/src/components/Ui/TextareaInput/TextareaInput.css +1 -1
  7. package/dist/components/Ui/Accordeon/Accordeon.stories.js +419 -60
  8. package/dist/components/Ui/Alert/Alert.stories.js +251 -237
  9. package/dist/components/Ui/Badge/Badge.stories.js +264 -133
  10. package/dist/components/Ui/Button/Button.stories.js +288 -135
  11. package/dist/components/Ui/ButtonsArray/ButtonsArray.stories.js +345 -419
  12. package/dist/components/Ui/Checkbox/Checkbox.stories.js +233 -152
  13. package/dist/components/Ui/CliTextareaInput/CliTextAreaInput.stories.js +457 -0
  14. package/dist/components/Ui/CustomLink/CustomLink.stories.js +283 -0
  15. package/dist/components/Ui/DatePicker/DatePicker.stories.js +234 -35
  16. package/dist/components/Ui/DateRangePicker/DateRangePicker.stories.js +334 -77
  17. package/dist/components/Ui/DropdownInput/DropdownInput.stories.js +361 -72
  18. package/dist/components/Ui/DropdownMenu/DropdownMenu.stories.js +493 -54
  19. package/dist/components/Ui/DropdownSearchInput/DropdownSearchInput.js +46 -43
  20. package/dist/components/Ui/DropdownSearchInput/DropdownSearchInput.stories.js +573 -135
  21. package/dist/components/Ui/DropdownSearchInput/DropdownSuggestions.js +41 -40
  22. package/dist/components/Ui/FileUpload/FileUpload.stories.js +509 -0
  23. package/dist/components/Ui/Icons/Icons.stories.js +373 -0
  24. package/dist/components/Ui/ModalWindow/ModalWindow.stories.js +348 -44
  25. package/dist/components/Ui/NumberInput/NumberInput.stories.js +501 -0
  26. package/dist/components/Ui/Pagination/Pagination.stories.js +257 -0
  27. package/dist/components/Ui/Radio/Radio.stories.js +470 -37
  28. package/dist/components/Ui/SearchInput/SearchData.stories.js +571 -61
  29. package/dist/components/Ui/Switch/Switch.js +13 -12
  30. package/dist/components/Ui/Switch/Switch.stories.js +525 -0
  31. package/dist/components/Ui/Table/Table.stories.js +592 -0
  32. package/dist/components/Ui/Tabs/Tabs.stories.js +387 -45
  33. package/dist/components/Ui/Tag/Tag.stories.js +343 -334
  34. package/dist/components/Ui/TextInput/TextInput.js +43 -39
  35. package/dist/components/Ui/TextInput/TextInput.stories.js +793 -206
  36. package/dist/components/Ui/TextareaInput/TextareaInput.js +43 -40
  37. package/dist/components/Ui/TextareaInput/TextareaInput.stories.js +559 -14
  38. package/dist/components/Ui/Tooltip/Tooltip.stories.js +681 -75
  39. package/dist/main.d.ts +1 -0
  40. package/package.json +1 -1
  41. package/dist/assets/src/components/Ui/Tooltip/Tooltip.stories.module.css +0 -1
  42. package/dist/src/components/Ui/Tooltip/Tooltip.stories.module.css.js +0 -15
@@ -1 +1 @@
1
- .datepicker{position:relative;width:160px;font-family:Arial,sans-serif}.datepicker .native-input{position:absolute;opacity:0;pointer-events:none;height:0;width:0}.datepicker-input{display:flex;align-items:center;gap:8px;height:44px;padding:8px;border:1px solid var(--color-border-primary-default);border-radius:8px;background-color:var(--color-bg-neutral-basic-default);cursor:pointer;transition:border-color .2s}.datepicker-input:hover{border-color:var(--color-bg-neutral-medium-default)}.datepicker-input .placeholder{margin:0 auto 0 0}.datepicker-input .caret *{fill:var(--color-icon-secondary-default)}.datepicker-calendar{position:absolute;top:100%;left:0;z-index:100;padding:16px;background-color:var(--color-bg-neutral-basic-default);border-radius:8px;border:1px solid var(--color-border-primary-default)}.datepicker-calendar .calendar-controls{display:flex;justify-content:space-between;margin-bottom:16px}.datepicker-calendar .month-control,.datepicker-calendar .year-control{display:flex;align-items:center;justify-content:space-between}.datepicker-calendar .month-control{width:160px}.datepicker-calendar .current-month,.datepicker-calendar .current-year{min-width:60px;text-align:center;font-weight:600}.datepicker-calendar .nav-button{display:flex;align-items:center;justify-content:center;border:none;background-color:transparent;cursor:pointer;transition:background-color .2s}.datepicker-calendar .calendar-weekdays{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:8px;text-align:center;font-size:12px}.datepicker-calendar .calendar-weekdays .weekday{font-weight:600}.datepicker-calendar .calendar-days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.datepicker-calendar .calendar-days .day{display:flex;align-items:center;justify-content:center;height:40px;width:40px;cursor:pointer;font-size:14px;flex-direction:column;border-radius:4px}.datepicker-calendar .calendar-days .day:hover{background-color:var(--color-bg-neutral-light-default)}.datepicker-calendar .calendar-days .day.selected{background-color:var(--color-bg-brand-default);color:var(--color-text-primary-inversed)}.datepicker-calendar .calendar-days .day.disabled{color:var(--color-text-secondary-default);pointer-events:none}.datepicker-calendar .calendar-days .day.other-month{color:var(--color-text-secondary-default);opacity:.7}.datepicker-calendar .calendar-days .day.today{position:relative}.datepicker-calendar .calendar-days .day.today:after{content:"";display:block;position:absolute;width:5px;height:5px;border-radius:50%;background-color:var(--color-bg-brand-default);bottom:4px}.datepicker-calendar .calendar-days .day.today.selected:after{background-color:var(--color-bg-neutral-basic-default)}
1
+ .datepicker{position:relative;min-width:160px;font-family:Arial,sans-serif}.datepicker .native-input{position:absolute;opacity:0;pointer-events:none;height:0;width:0}.datepicker-input{display:flex;align-items:center;gap:8px;height:44px;padding:8px;border:1px solid var(--color-border-primary-default);border-radius:8px;background-color:var(--color-bg-neutral-basic-default);cursor:pointer;transition:border-color .2s}.datepicker-input:hover{border-color:var(--color-bg-neutral-medium-default)}.datepicker-input .placeholder{margin:0 auto 0 0}.datepicker-input .caret *{fill:var(--color-icon-secondary-default)}.datepicker-calendar{position:absolute;top:100%;left:0;z-index:100;padding:16px;background-color:var(--color-bg-neutral-basic-default);border-radius:8px;border:1px solid var(--color-border-primary-default)}.datepicker-calendar .calendar-controls{display:flex;justify-content:space-between;margin-bottom:16px}.datepicker-calendar .month-control,.datepicker-calendar .year-control{display:flex;align-items:center;justify-content:space-between}.datepicker-calendar .month-control{width:160px}.datepicker-calendar .current-month,.datepicker-calendar .current-year{min-width:60px;text-align:center;font-weight:600}.datepicker-calendar .nav-button{display:flex;align-items:center;justify-content:center;border:none;background-color:transparent;cursor:pointer;transition:background-color .2s}.datepicker-calendar .calendar-weekdays{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:8px;text-align:center;font-size:12px}.datepicker-calendar .calendar-weekdays .weekday{font-weight:600}.datepicker-calendar .calendar-days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.datepicker-calendar .calendar-days .day{display:flex;align-items:center;justify-content:center;height:40px;width:40px;cursor:pointer;font-size:14px;flex-direction:column;border-radius:4px}.datepicker-calendar .calendar-days .day:hover{background-color:var(--color-bg-neutral-light-default)}.datepicker-calendar .calendar-days .day.selected{background-color:var(--color-bg-brand-default);color:var(--color-text-primary-inversed)}.datepicker-calendar .calendar-days .day.disabled{color:var(--color-text-secondary-default);pointer-events:none}.datepicker-calendar .calendar-days .day.other-month{color:var(--color-text-secondary-default);opacity:.7}.datepicker-calendar .calendar-days .day.today{position:relative}.datepicker-calendar .calendar-days .day.today:after{content:"";display:block;position:absolute;width:5px;height:5px;border-radius:50%;background-color:var(--color-bg-brand-default);bottom:4px}.datepicker-calendar .calendar-days .day.today.selected:after{background-color:var(--color-bg-neutral-basic-default)}
@@ -1 +1 @@
1
- .dropdown-search-input-container{position:relative;width:100%;display:flex;flex-direction:column;gap:8px;min-width:200px}.dropdown-search-input{display:flex;justify-content:space-between;align-items:center;padding:0 8px;background-color:var(--color-bg-neutral-basic-default);border:1px solid var(--color-border-primary-default);border-radius:8px;cursor:pointer;min-height:40px;flex-direction:row}.dropdown-search-input:hover{box-shadow:0 0 0 1px var(--color-border-primary-default),inset 0 0 0 1px var(--color-border-primary-default)}.dropdown-search-input:focus{outline:none;border-color:var(--color-text-brand-default)}.dropdown-search-input--expanded{box-shadow:inset 0 0 0 1px var(--color-border-primary-default)}.dropdown-search-input--disabled{background-color:var(--color-bg-neutral-light-default);cursor:not-allowed;opacity:.5}.dropdown-search-input--error{border-color:var(--color-border-error-default)}.dropdown-search-input__value{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-search-input__indicators{display:flex;align-items:center;gap:8px}.dropdown-search-input__indicators *{fill:var(--color-icon-secondary-default)}.dropdown-search-input__indicators:hover *{fill:var(--color-icon-secondary-hover)}.dropdown-search-input__clear{background:none;border:none;font-size:18px;cursor:pointer;display:flex;align-items:center;color:var(--color-border-primary-default)}.dropdown-search-input__caret{color:var(--color-border-primary-default);width:16px;height:16px}.dropdown-search-input-suggestions-portal{border:1px solid var(--color-border-primary-default);border-radius:8px;box-shadow:0 0 10px -2px var(--effectseffect-shadow-XL);padding:8px;background-color:var(--color-bg-neutral-basic-default)}.dropdown-search-input-suggestions-portal .text-input.clearable input{padding-right:0!important}.dropdown-search-input-suggestions-portal__header{margin:0 0 8px}.dropdown-search-input-suggestions-portal__input-search{width:100%}.dropdown-search-input-suggestions-list{list-style:none;margin:0;padding:0;max-height:250px;overflow-y:auto}.dropdown-search-input-suggestions-list__item{padding:8px;cursor:pointer;border-radius:6px;display:flex;align-items:center}.dropdown-search-input-suggestions-list__item:hover{background-color:var(--color-bg-neutral-lightest-default)}.dropdown-search-input-suggestions-list__item:last-child{border-bottom:none}.dropdown-search-input-suggestions-list__item--selected,.dropdown-search-input-suggestions-list__item--selected:hover{font-weight:600;background-color:var(--color-bg-brand_lightest-default)}.dropdown-search-input-suggestions-list__empty{padding:16px;text-align:center;color:var(--color-text-secondary-default);font-style:italic;cursor:default}.dropdown-search-input-suggestions-list__empty:hover{background-color:transparent;cursor:default}.dropdown-search-input__error-message{color:var(--color-text-error-default);font-size:12px;margin-top:4px}
1
+ .dropdown-search-input-container{position:relative;width:100%;display:flex;flex-direction:column;gap:8px;min-width:200px}.dropdown-search-input{display:flex;justify-content:space-between;align-items:center;padding:0 8px;background-color:var(--color-bg-neutral-basic-default);border:1px solid var(--color-border-primary-default);border-radius:8px;cursor:pointer;min-height:40px;flex-direction:row}.dropdown-search-input:hover{box-shadow:0 0 0 1px var(--color-border-primary-default),inset 0 0 0 1px var(--color-border-primary-default)}.dropdown-search-input:focus{outline:none;border-color:var(--color-text-brand-default)}.dropdown-search-input--expanded{box-shadow:inset 0 0 0 1px var(--color-border-primary-default)}.dropdown-search-input--disabled{background-color:var(--color-bg-neutral-light-default);cursor:not-allowed;opacity:.5}.dropdown-search-input--error{border-color:var(--color-border-error-default)}.dropdown-search-input__value{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-search-input__indicators{display:flex;align-items:center;gap:8px}.dropdown-search-input__indicators *{fill:var(--color-icon-secondary-default)}.dropdown-search-input__indicators:hover *{fill:var(--color-icon-secondary-hover)}.dropdown-search-input__clear{background:none;border:none;font-size:18px;cursor:pointer;display:flex;align-items:center;color:var(--color-border-primary-default)}.dropdown-search-input__caret{color:var(--color-border-primary-default);width:16px;height:16px}.dropdown-search-input-suggestions-portal{border:1px solid var(--color-border-primary-default);border-radius:8px;box-shadow:0 0 10px -2px var(--effectseffect-shadow-XL);padding:8px;background-color:var(--color-bg-neutral-basic-default)}.dropdown-search-input-suggestions-portal .text-input.clearable input{padding-right:0!important}.dropdown-search-input-suggestions-portal__header{margin:0 0 8px}.dropdown-search-input-suggestions-portal__input-search{width:100%}.dropdown-search-input-suggestions-list{list-style:none;margin:0;padding:0;max-height:250px;overflow-y:auto}.dropdown-search-input-suggestions-list__item{padding:8px;cursor:pointer;border-radius:6px;display:flex;align-items:center}.dropdown-search-input-suggestions-list__item:hover{background-color:var(--color-bg-neutral-lightest-default)}.dropdown-search-input-suggestions-list__item:last-child{border-bottom:none}.dropdown-search-input-suggestions-list__item--selected,.dropdown-search-input-suggestions-list__item--selected:hover{font-weight:600;background-color:var(--color-bg-brand_lightest-default)}.dropdown-search-input-suggestions-list__empty{padding:16px;text-align:center;color:var(--color-text-secondary-default);font-style:italic;cursor:default}.dropdown-search-input-suggestions-list__empty:hover{background-color:transparent;cursor:default}.dropdown-search-input__error-message{color:var(--color-text-error-default);font-size:12px;margin-top:4px;display:flex;align-items:center}.dropdown-search-input__error-message svg{margin:0 4px 0 0}.dropdown-search-input__error-message svg *{fill:var(--color-border-error-default)}
@@ -1 +1 @@
1
- .radio{display:flex;align-items:center}.radio:not(:last-child){margin:0 0 8px}.radio.disabled{cursor:default;opacity:40%}.radio input[type=radio]{display:none}.radio input[type=radio]:checked+.checkmark{border:5px solid var(--color-bg-brand-default)}.radio .radio-label{display:flex;align-items:center;cursor:pointer}.radio .radio-label .test{line-height:16.8px}.radio .checkmark{box-sizing:border-box;position:relative;display:block;width:20px;height:20px;border-radius:50%;border:1px solid var(--color-border-primary-default);background-color:var(--color-bg-neutral-basic-default);margin-right:8px;transition:.04s;-webkit-user-select:none;user-select:none}
1
+ .radio{display:flex;align-items:center}.radio:not(:last-child){margin:0 0 8px}.radio.disabled{cursor:default;opacity:40%}.radio input[type=radio]{display:none}.radio input[type=radio]:checked+.checkmark{border:5px solid var(--color-bg-brand-default)}.radio .radio-label{display:flex;align-items:center;cursor:pointer;position:relative}.radio .radio-label .test{line-height:16.8px}.radio .checkmark{box-sizing:border-box;position:relative;display:block;width:20px;height:20px;border-radius:50%;border:1px solid var(--color-border-primary-default);background-color:var(--color-bg-neutral-basic-default);margin-right:8px;transition:.04s;-webkit-user-select:none;user-select:none}
@@ -1 +1 @@
1
- .switch-container:not(:last-child){margin:0 0 12px}.switch-container label{display:flex;align-items:center;justify-content:space-between}.switch input[type=checkbox]{position:absolute;opacity:0;cursor:pointer}.switch{display:inline-flex;align-items:center;line-height:16.8px;cursor:pointer;-webkit-user-select:none;user-select:none}.switch.disabled{opacity:50%;cursor:default}.switch input[type=checkbox]+.slider{display:flex;align-items:center;width:43px;height:24px;border:1px solid var(--color-bg-brand-default);border-radius:12px;transition:all .2s;margin:0 0 0 8px}.switch input[type=checkbox]+.slider:after{content:"";display:block;width:18px;height:18px;border-radius:50%;background-color:var(--color-bg-brand-default);margin:0 2px;transition:all .2s}.switch input[type=checkbox]:checked+.slider{background-color:var(--color-bg-brand-default);border-color:var(--color-bg-brand-default)}.switch input[type=checkbox]:checked+.slider:after{background-color:var(--light-color-static);margin:0 0 0 20px}
1
+ .switch-container{position:relative}.switch-container:not(:last-child){margin:0 0 12px}.switch-container.has-frame{display:flex;align-items:center;box-shadow:0 0 0 1px var(--color-border-primary-default);border-radius:8px;height:44px;justify-content:space-between;padding:0 8px}.switch-container label{display:flex;align-items:center;justify-content:space-between;flex-grow:1}.switch input[type=checkbox]{position:absolute;opacity:0;cursor:pointer}.switch{display:inline-flex;align-items:center;line-height:16.8px;cursor:pointer;-webkit-user-select:none;user-select:none}.switch.disabled{opacity:50%;cursor:default}.switch input[type=checkbox]+.slider{display:flex;align-items:center;width:43px;height:24px;border:1px solid var(--color-bg-brand-default);border-radius:12px;transition:all .2s;margin:0 0 0 8px}.switch input[type=checkbox]+.slider:after{content:"";display:block;width:18px;height:18px;border-radius:50%;background-color:var(--color-bg-brand-default);margin:0 2px;transition:all .2s}.switch input[type=checkbox]:checked+.slider{background-color:var(--color-bg-brand-default);border-color:var(--color-bg-brand-default)}.switch input[type=checkbox]:checked+.slider:after{background-color:var(--light-color-static);margin:0 0 0 20px}
@@ -1 +1 @@
1
- .text-input{display:flex;flex-direction:column}.text-input.inline{flex-direction:row;justify-content:space-between}.text-input.inline>div{flex-grow:1}.text-input.inline label{padding:14px 0 0;margin:0 16px 0 0}.text-input label{margin:0 0 8px}.text-input .input-container{display:flex;position:relative;z-index:0}.text-input .input-container.has-icon input{padding:10px 8px 10px 36px}.text-input .input-container.has-icon .icon{position:absolute;left:8px;top:calc(50% - 10px);z-index:2}.text-input .input-container.has-icon .icon *{fill:var(--color-icon-secondary-default)}.text-input .input-container input{border:1px solid var(--color-border-primary-default);border-radius:8px;height:44px;padding:10px 8px;outline:none;background-color:var(--color-bg-neutral-basic-default);z-index:1;flex-grow:1;color:var(--color-text-primary-default)}.text-input .input-container input[disabled]{background-color:var(--color-bg-neutral-light-default);pointer-events:none}.text-input .input-container input::placeholder{color:var(--color-text-secondary-default)}.text-input .input-container input:active,.text-input .input-container input:focus{box-shadow:0 0 0 1px var(--color-border-primary-default),inset 0 0 0 1px var(--color-border-primary-default)}.text-input .input-container input.has-icon{padding:10px 8px 10px 36px}.text-input.sm.rounded input{border-radius:18px}.text-input.sm .input-container input{height:36px}.text-input.rounded input{border-radius:22px}.text-input.invalid input,.text-input.invalid input:active,.text-input.invalid input:focus{border-color:var(--color-border-error-default);color:var(--color-border-error-default)}.text-input.invalid input:focus{box-shadow:0 0 0 1px var(--color-border-error-default),inset 0 0 0 1px var(--color-border-error-default)}.text-input.invalid .icon *{fill:var(--color-border-error-default)!important}.text-input.invalid .helper-text{color:var(--color-border-error-default)}.text-input.success input,.text-input.success input:active,.text-input.success input:focus{border-color:var(--color-border-success-default);color:var(--color-text-success-default)}.text-input.success input:focus{box-shadow:0 0 0 1px var(--color-border-success-default),inset 0 0 0 1px var(--color-border-success-default)}.text-input.success .icon *{fill:var(--color-border-success-default)!important}.text-input.success .helper-text{color:var(--color-text-success-default)}.text-input.clearable input{padding-right:36px!important}.text-input.clearable .clear-value{position:absolute;right:8px;top:calc(50% - 10px);cursor:pointer;z-index:1;height:20px}.text-input.clearable .clear-value *{fill:var(--color-icon-secondary-default)}.text-input .helper-text{font-size:12px;color:var(--color-text-secondary-default);margin:8px 0 0}.text-input .loader{position:absolute;right:8px;top:calc(50% - 10px)}.text-input .loader *{fill:var(--color-icon-secondary-default)}
1
+ .text-input{display:flex;flex-direction:column}.text-input.inline{flex-direction:row;justify-content:space-between}.text-input.inline>div{flex-grow:1}.text-input.inline label{padding:14px 0 0;margin:0 16px 0 0}.text-input label{margin:0 0 8px}.text-input .input-container{display:flex;position:relative;z-index:0}.text-input .input-container.has-icon input{padding:10px 8px 10px 36px}.text-input .input-container.has-icon .icon{position:absolute;left:8px;top:calc(50% - 10px);z-index:2}.text-input .input-container.has-icon .icon *{fill:var(--color-icon-secondary-default)}.text-input .input-container input{border:1px solid var(--color-border-primary-default);border-radius:8px;height:44px;padding:10px 8px;outline:none;background-color:var(--color-bg-neutral-basic-default);z-index:1;flex-grow:1;color:var(--color-text-primary-default)}.text-input .input-container input[disabled]{background-color:var(--color-bg-neutral-light-default);pointer-events:none}.text-input .input-container input::placeholder{color:var(--color-text-secondary-default)}.text-input .input-container input:active,.text-input .input-container input:focus{box-shadow:0 0 0 1px var(--color-border-primary-default),inset 0 0 0 1px var(--color-border-primary-default)}.text-input .input-container input.has-icon{padding:10px 8px 10px 36px}.text-input.sm.rounded input{border-radius:18px}.text-input.sm .input-container input{height:36px}.text-input.rounded input{border-radius:22px}.text-input.invalid input,.text-input.invalid input:active,.text-input.invalid input:focus{border-color:var(--color-border-error-default);color:var(--color-border-error-default)}.text-input.invalid input:focus{box-shadow:0 0 0 1px var(--color-border-error-default),inset 0 0 0 1px var(--color-border-error-default)}.text-input.invalid .icon *{fill:var(--color-border-error-default)!important}.text-input.invalid .helper-text{display:flex;align-items:center;color:var(--color-border-error-default)}.text-input.invalid .helper-text svg{margin:0 4px 0 0}.text-input.invalid .helper-text svg *{fill:var(--color-border-error-default)}.text-input.success input,.text-input.success input:active,.text-input.success input:focus{border-color:var(--color-border-success-default);color:var(--color-text-success-default)}.text-input.success input:focus{box-shadow:0 0 0 1px var(--color-border-success-default),inset 0 0 0 1px var(--color-border-success-default)}.text-input.success .icon *{fill:var(--color-border-success-default)!important}.text-input.success .helper-text{color:var(--color-text-success-default)}.text-input.clearable input{padding-right:36px!important}.text-input.clearable .clear-value{position:absolute;right:8px;top:calc(50% - 10px);cursor:pointer;z-index:1;height:20px}.text-input.clearable .clear-value *{fill:var(--color-icon-secondary-default)}.text-input .helper-text{font-size:12px;color:var(--color-text-secondary-default);margin:8px 0 0}.text-input .loader{position:absolute;right:8px;top:calc(50% - 10px)}.text-input .loader *{fill:var(--color-icon-secondary-default)}
@@ -1 +1 @@
1
- .textarea-input{display:flex;flex-direction:column;resize:none}.textarea-input.inline{flex-direction:row;justify-content:space-between}.textarea-input.inline>div{flex-grow:1}.textarea-input.inline label{padding:12px 0 0;margin:0 16px 0 0}.textarea-input label{margin:0 0 8px}.textarea-input .char-limit{text-align:right;margin-top:8px;font-size:12px;font-weight:400;color:var(--color-text-secondary-default)}.textarea-input .textarea-wrapper{position:relative}.textarea-input textarea{border:1px solid var(--color-border-primary-default);border-radius:8px;padding:10.5px 8px;color:var(--color-text-primary-default);max-width:100%;min-width:100%;min-height:64px;resize:both;background-color:var(--color-bg-neutral-basic-default);font-size:14px;font-weight:400}.textarea-input textarea[disabled]{background-color:var(--color-bg-neutral-light-default);pointer-events:none}.textarea-input textarea::placeholder{color:var(--color-text-secondary-default)}.textarea-input textarea:active,.textarea-input textarea:focus{outline:none;box-shadow:0 0 0 1px var(--color-border-primary-default),inset 0 0 0 1px var(--color-border-primary-default)}.textarea-input textarea.no-resize{resize:none}.textarea-input .helper-text{font-size:12px;color:var(--color-text-secondary-default);margin:8px 0 0}.textarea-input.invalid textarea{border-color:var(--color-border-error-default);color:var(--color-border-error-default)}.textarea-input.invalid textarea:focus,.textarea-input.invalid textarea:active{box-shadow:0 0 0 1px var(--color-border-error-default),inset 0 0 0 1px var(--color-border-error-default)}.textarea-input.invalid svg *{fill:var(--color-border-error-default)}.textarea-input.invalid .helper-text{color:var(--color-border-error-default)}.textarea-input.success textarea{border-color:var(--color-border-success-default);color:var(--color-border-success-default)}.textarea-input.success textarea:focus,.textarea-input.success textarea:active{box-shadow:0 0 0 1px var(--color-border-success-default),inset 0 0 0 1px var(--color-border-success-default)}.textarea-input.success svg *{fill:var(--color-border-success-default)}.textarea-input.success .helper-text{color:var(--color-border-success-default)}.textarea-input.clearable textarea{padding-right:36px!important}.textarea-input.clearable .clear-value{position:absolute;right:8px;top:8px;cursor:pointer;z-index:1;height:20px}.textarea-input.clearable .clear-value *{fill:var(--color-icon-secondary-default)}
1
+ .textarea-input{display:flex;flex-direction:column;resize:none}.textarea-input.inline{flex-direction:row;justify-content:space-between}.textarea-input.inline>div{flex-grow:1}.textarea-input.inline label{padding:12px 0 0;margin:0 16px 0 0}.textarea-input label{margin:0 0 8px}.textarea-input .char-limit{text-align:right;margin-top:8px;font-size:12px;font-weight:400;color:var(--color-text-secondary-default)}.textarea-input .textarea-wrapper{position:relative}.textarea-input textarea{border:1px solid var(--color-border-primary-default);border-radius:8px;padding:10.5px 8px;color:var(--color-text-primary-default);max-width:100%;min-width:100%;min-height:64px;resize:both;background-color:var(--color-bg-neutral-basic-default);font-size:14px;font-weight:400}.textarea-input textarea[disabled]{background-color:var(--color-bg-neutral-light-default);pointer-events:none}.textarea-input textarea::placeholder{color:var(--color-text-secondary-default)}.textarea-input textarea:active,.textarea-input textarea:focus{outline:none;box-shadow:0 0 0 1px var(--color-border-primary-default),inset 0 0 0 1px var(--color-border-primary-default)}.textarea-input textarea.no-resize{resize:none}.textarea-input .helper-text{font-size:12px;color:var(--color-text-secondary-default);margin:8px 0 0}.textarea-input.invalid textarea{border-color:var(--color-border-error-default);color:var(--color-border-error-default)}.textarea-input.invalid textarea:focus,.textarea-input.invalid textarea:active{box-shadow:0 0 0 1px var(--color-border-error-default),inset 0 0 0 1px var(--color-border-error-default)}.textarea-input.invalid svg *{fill:var(--color-border-error-default)}.textarea-input.invalid .helper-text{display:flex;align-items:center;color:var(--color-border-error-default)}.textarea-input.invalid .helper-text svg{margin:0 4px 0 0}.textarea-input.invalid .helper-text svg *{fill:var(--color-border-error-default)}.textarea-input.success textarea{border-color:var(--color-border-success-default);color:var(--color-border-success-default)}.textarea-input.success textarea:focus,.textarea-input.success textarea:active{box-shadow:0 0 0 1px var(--color-border-success-default),inset 0 0 0 1px var(--color-border-success-default)}.textarea-input.success svg *{fill:var(--color-border-success-default)}.textarea-input.success .helper-text{color:var(--color-border-success-default)}.textarea-input.clearable textarea{padding-right:36px!important}.textarea-input.clearable .clear-value{position:absolute;right:8px;top:8px;cursor:pointer;z-index:1;height:20px}.textarea-input.clearable .clear-value *{fill:var(--color-icon-secondary-default)}
@@ -1,72 +1,431 @@
1
- import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
- import { Accordeon as r } from "./Accordeon.js";
3
- const s = {
1
+ import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
+ import { Accordeon as i } from "./Accordeon.js";
3
+ const c = {
4
4
  title: "UIKit/Accordeon",
5
- // Название группы историй
6
- component: r,
7
- // Компонент, для которого создаются истории
8
- tags: ["autodocs"],
9
- // Автоматическая генерация документации
10
- argTypes: {
11
- title: {
12
- control: "text",
13
- // Позволяет редактировать заголовок в интерфейсе Storybook
14
- description: "Заголовок аккордеона"
15
- },
16
- content: {
17
- control: "text",
18
- // Позволяет редактировать контент в интерфейсе Storybook
19
- description: "Контент аккордеона"
20
- }
5
+ component: i,
6
+ parameters: {
7
+ layout: "padded"
21
8
  }
22
- }, c = {
23
- args: {
24
- title: "Заголовок аккордеона!",
25
- content: "Это контент аккордеона. Он может быть текстом, компонентом или чем угодно."
9
+ }, h = {
10
+ render: () => /* @__PURE__ */ d("div", { className: "documentation", children: [
11
+ /* @__PURE__ */ e("h2", { children: "Документация Accordeon" }),
12
+ /* @__PURE__ */ e("p", { children: "Компонент аккордеона для компактного отображения контента с плавной анимацией раскрытия." }),
13
+ /* @__PURE__ */ d("p", { children: [
14
+ /* @__PURE__ */ e("b", { children: "Dev.Note:" }),
15
+ "Данный компонент не отрисован в дизайн системе и требовался для частной задачи в проекте Meta, всвязи с чем его вёрстка находится в состоянии прототипа.",
16
+ /* @__PURE__ */ e("br", {}),
17
+ "Компонент можно удалить или довести до ума и использовать по назначению. Функционально он готов."
18
+ ] }),
19
+ /* @__PURE__ */ d("table", { children: [
20
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ d("tr", { children: [
21
+ /* @__PURE__ */ e("th", { children: "Пропс" }),
22
+ /* @__PURE__ */ e("th", { children: "Тип" }),
23
+ /* @__PURE__ */ e("th", { children: "Обязательный" }),
24
+ /* @__PURE__ */ e("th", { children: "По умолчанию" }),
25
+ /* @__PURE__ */ e("th", { children: "Описание" })
26
+ ] }) }),
27
+ /* @__PURE__ */ d("tbody", { children: [
28
+ /* @__PURE__ */ d("tr", { children: [
29
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { children: "title" }) }),
30
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { children: "string" }) }),
31
+ /* @__PURE__ */ e("td", { children: "✗" }),
32
+ /* @__PURE__ */ e("td", { children: "-" }),
33
+ /* @__PURE__ */ e("td", { children: "Основной заголовок аккордеона" })
34
+ ] }),
35
+ /* @__PURE__ */ d("tr", { children: [
36
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { children: "content" }) }),
37
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { children: "ReactNode" }) }),
38
+ /* @__PURE__ */ e("td", { children: "✓" }),
39
+ /* @__PURE__ */ e("td", { children: "-" }),
40
+ /* @__PURE__ */ e("td", { children: "Содержимое аккордеона (текст, компоненты, HTML)" })
41
+ ] }),
42
+ /* @__PURE__ */ d("tr", { children: [
43
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { children: "openTitle" }) }),
44
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { children: "ReactNode" }) }),
45
+ /* @__PURE__ */ e("td", { children: "✗" }),
46
+ /* @__PURE__ */ e("td", { children: "-" }),
47
+ /* @__PURE__ */ e("td", { children: "Дополнительный контент при открытом состоянии" })
48
+ ] }),
49
+ /* @__PURE__ */ d("tr", { children: [
50
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { children: "closeTitle" }) }),
51
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { children: "ReactNode" }) }),
52
+ /* @__PURE__ */ e("td", { children: "✗" }),
53
+ /* @__PURE__ */ e("td", { children: "-" }),
54
+ /* @__PURE__ */ e("td", { children: "Дополнительный контент при закрытом состоянии" })
55
+ ] })
56
+ ] })
57
+ ] }),
58
+ /* @__PURE__ */ e("h2", { children: "Примеры использования" }),
59
+ /* @__PURE__ */ d("table", { children: [
60
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ d("tr", { children: [
61
+ /* @__PURE__ */ e("th", { children: "Назначение" }),
62
+ /* @__PURE__ */ e("th", { children: "Код" })
63
+ ] }) }),
64
+ /* @__PURE__ */ d("tbody", { children: [
65
+ /* @__PURE__ */ d("tr", { children: [
66
+ /* @__PURE__ */ e("td", { children: "Базовый аккордеон" }),
67
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { children: `<Accordeon
68
+ title="Часто задаваемые вопросы"
69
+ content="Ответ на вопрос..."
70
+ />` }) })
71
+ ] }),
72
+ /* @__PURE__ */ d("tr", { children: [
73
+ /* @__PURE__ */ e("td", { children: "С динамическими заголовками" }),
74
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { children: `<Accordeon
75
+ title="Настройки"
76
+ openTitle="▲ Скрыть"
77
+ closeTitle="▼ Показать"
78
+ content={<SettingsForm />}
79
+ />` }) })
80
+ ] }),
81
+ /* @__PURE__ */ d("tr", { children: [
82
+ /* @__PURE__ */ e("td", { children: "С HTML контентом" }),
83
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { children: `<Accordeon
84
+ title="Подробности"
85
+ content={
86
+ <div>
87
+ <h3>Заголовок</h3>
88
+ <p>Текст с <strong>форматированием</strong></p>
89
+ </div>
26
90
  }
27
- }, d = {
91
+ />` }) })
92
+ ] })
93
+ ] })
94
+ ] }),
95
+ /* @__PURE__ */ e("h2", { children: "Поведение компонента" }),
96
+ /* @__PURE__ */ d("table", { children: [
97
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ d("tr", { children: [
98
+ /* @__PURE__ */ e("th", { children: "Действие" }),
99
+ /* @__PURE__ */ e("th", { children: "Реакция" })
100
+ ] }) }),
101
+ /* @__PURE__ */ d("tbody", { children: [
102
+ /* @__PURE__ */ d("tr", { children: [
103
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("strong", { children: "Клик по заголовку" }) }),
104
+ /* @__PURE__ */ e("td", { children: "Переключение состояния (открыто/закрыто)" })
105
+ ] }),
106
+ /* @__PURE__ */ d("tr", { children: [
107
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("strong", { children: "Открытие" }) }),
108
+ /* @__PURE__ */ e("td", { children: "Плавное раскрытие с анимацией max-height" })
109
+ ] }),
110
+ /* @__PURE__ */ d("tr", { children: [
111
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("strong", { children: "Закрытие" }) }),
112
+ /* @__PURE__ */ e("td", { children: "Плавное схлопывание с анимацией" })
113
+ ] }),
114
+ /* @__PURE__ */ d("tr", { children: [
115
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("strong", { children: "Динамический контент" }) }),
116
+ /* @__PURE__ */ e("td", { children: "Автоматический расчет высоты контента" })
117
+ ] })
118
+ ] })
119
+ ] }),
120
+ /* @__PURE__ */ e("h2", { children: "Особенности компонента" }),
121
+ /* @__PURE__ */ d("table", { children: [
122
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ d("tr", { children: [
123
+ /* @__PURE__ */ e("th", { children: "Функциональность" }),
124
+ /* @__PURE__ */ e("th", { children: "Описание" })
125
+ ] }) }),
126
+ /* @__PURE__ */ d("tbody", { children: [
127
+ /* @__PURE__ */ d("tr", { children: [
128
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("strong", { children: "Плавная анимация" }) }),
129
+ /* @__PURE__ */ e("td", { children: "CSS transition для smooth раскрытия/закрытия" })
130
+ ] }),
131
+ /* @__PURE__ */ d("tr", { children: [
132
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("strong", { children: "Авторасчет высоты" }) }),
133
+ /* @__PURE__ */ e("td", { children: "Автоматическое определение высоты контента" })
134
+ ] }),
135
+ /* @__PURE__ */ d("tr", { children: [
136
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("strong", { children: "Гибкий контент" }) }),
137
+ /* @__PURE__ */ e("td", { children: "Поддержка любого React-контента" })
138
+ ] }),
139
+ /* @__PURE__ */ d("tr", { children: [
140
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("strong", { children: "Динамические заголовки" }) }),
141
+ /* @__PURE__ */ e("td", { children: "Разные состояния для открытого/закрытого вида" })
142
+ ] }),
143
+ /* @__PURE__ */ d("tr", { children: [
144
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("strong", { children: "Доступность" }) }),
145
+ /* @__PURE__ */ e("td", { children: "Клик по всей области заголовка" })
146
+ ] })
147
+ ] })
148
+ ] }),
149
+ /* @__PURE__ */ e("h2", { children: "Структура CSS-классов" }),
150
+ /* @__PURE__ */ d("table", { children: [
151
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ d("tr", { children: [
152
+ /* @__PURE__ */ e("th", { children: "CSS-класс" }),
153
+ /* @__PURE__ */ e("th", { children: "Назначение" })
154
+ ] }) }),
155
+ /* @__PURE__ */ d("tbody", { children: [
156
+ /* @__PURE__ */ d("tr", { children: [
157
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { children: ".accordeon" }) }),
158
+ /* @__PURE__ */ e("td", { children: "Основной контейнер компонента" })
159
+ ] }),
160
+ /* @__PURE__ */ d("tr", { children: [
161
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { children: ".content-wrapper" }) }),
162
+ /* @__PURE__ */ e("td", { children: "Обертка для анимированного контента" })
163
+ ] }),
164
+ /* @__PURE__ */ d("tr", { children: [
165
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { children: ".content" }) }),
166
+ /* @__PURE__ */ e("td", { children: "Непосредственно содержимое аккордеона" })
167
+ ] }),
168
+ /* @__PURE__ */ d("tr", { children: [
169
+ /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { children: ".title" }) }),
170
+ /* @__PURE__ */ e("td", { children: "Кликабельный заголовок аккордеона" })
171
+ ] })
172
+ ] })
173
+ ] }),
174
+ /* @__PURE__ */ e("h2", { children: "Сценарии использования" }),
175
+ /* @__PURE__ */ d("table", { children: [
176
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ d("tr", { children: [
177
+ /* @__PURE__ */ e("th", { children: "Контекст" }),
178
+ /* @__PURE__ */ e("th", { children: "Пример" }),
179
+ /* @__PURE__ */ e("th", { children: "Рекомендации" })
180
+ ] }) }),
181
+ /* @__PURE__ */ d("tbody", { children: [
182
+ /* @__PURE__ */ d("tr", { children: [
183
+ /* @__PURE__ */ e("td", { children: "FAQ разделы" }),
184
+ /* @__PURE__ */ e("td", { children: "Вопросы и ответы" }),
185
+ /* @__PURE__ */ e("td", { children: "Используйте clearTitle/closeTitle для индикации состояния" })
186
+ ] }),
187
+ /* @__PURE__ */ d("tr", { children: [
188
+ /* @__PURE__ */ e("td", { children: "Настройки" }),
189
+ /* @__PURE__ */ e("td", { children: "Расширенные параметры" }),
190
+ /* @__PURE__ */ e("td", { children: "Группируйте связанные настройки" })
191
+ ] }),
192
+ /* @__PURE__ */ d("tr", { children: [
193
+ /* @__PURE__ */ e("td", { children: "Описания" }),
194
+ /* @__PURE__ */ e("td", { children: "Дополнительная информация" }),
195
+ /* @__PURE__ */ e("td", { children: "Идеально для скрытия второстепенного контента" })
196
+ ] }),
197
+ /* @__PURE__ */ d("tr", { children: [
198
+ /* @__PURE__ */ e("td", { children: "Мобильные интерфейсы" }),
199
+ /* @__PURE__ */ e("td", { children: "Компактные списки" }),
200
+ /* @__PURE__ */ e("td", { children: "Экономит пространство на маленьких экранах" })
201
+ ] })
202
+ ] })
203
+ ] })
204
+ ] })
205
+ }, o = {
28
206
  args: {
29
- ...c.args
30
- // Используем аргументы из Default
207
+ title: "Заголовок аккордеона",
208
+ content: "Это содержимое аккордеона. Нажмите на заголовок чтобы раскрыть или скрыть контент."
31
209
  },
32
- decorators: [
33
- (n) => /* @__PURE__ */ t("div", { style: { width: "300px" }, children: /* @__PURE__ */ t(n, {}) })
34
- ],
35
- parameters: {
36
- // Открываем аккордеон по умолчанию
37
- docs: {
38
- source: {
39
- code: "<Accordeon title='Заголовок' content='Контент аккордеона' isOpen={true} />"
40
- }
210
+ render: (n) => /* @__PURE__ */ e("div", { style: { padding: "20px", maxWidth: "500px" }, children: /* @__PURE__ */ e(i, { ...n }) })
211
+ }, p = {
212
+ render: () => /* @__PURE__ */ e("div", { style: { padding: "20px", maxWidth: "500px" }, children: /* @__PURE__ */ e(
213
+ i,
214
+ {
215
+ title: "Часто задаваемые вопросы",
216
+ content: "Здесь находится ответ на часто задаваемый вопрос. Аккордеон позволяет компактно организовать информацию и раскрывать её только при необходимости."
41
217
  }
42
- }
218
+ ) })
43
219
  }, a = {
44
- args: {
45
- title: "Аккордеон с HTML",
46
- content: /* @__PURE__ */ e("div", { children: [
47
- /* @__PURE__ */ t("h3", { children: "Заголовок внутри контента" }),
48
- /* @__PURE__ */ t("p", { children: "Этот аккордеон содержит HTML-контент." }),
49
- /* @__PURE__ */ e("ul", { children: [
50
- /* @__PURE__ */ t("li", { children: "Пункт 1" }),
51
- /* @__PURE__ */ t("li", { children: "Пункт 2" }),
52
- /* @__PURE__ */ t("li", { children: "Пункт 3" })
220
+ render: () => /* @__PURE__ */ e("div", { style: { padding: "20px", maxWidth: "500px" }, children: /* @__PURE__ */ e(
221
+ i,
222
+ {
223
+ title: "Настройки профиля",
224
+ openTitle: " Скрыть настройки",
225
+ closeTitle: " Показать настройки",
226
+ content: /* @__PURE__ */ d("div", { style: { padding: "16px", backgroundColor: "#f8f9fa", borderRadius: "4px" }, children: [
227
+ /* @__PURE__ */ e("h4", { style: { margin: "0 0 12px 0" }, children: "Настройки аккаунта" }),
228
+ /* @__PURE__ */ d("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
229
+ /* @__PURE__ */ d("label", { children: [
230
+ /* @__PURE__ */ e("input", { type: "checkbox" }),
231
+ " Email уведомления"
232
+ ] }),
233
+ /* @__PURE__ */ d("label", { children: [
234
+ /* @__PURE__ */ e("input", { type: "checkbox" }),
235
+ " Push-уведомления"
236
+ ] }),
237
+ /* @__PURE__ */ d("label", { children: [
238
+ /* @__PURE__ */ e("input", { type: "checkbox" }),
239
+ " СМС оповещения"
240
+ ] })
241
+ ] })
242
+ ] })
243
+ }
244
+ ) })
245
+ }, s = {
246
+ render: () => /* @__PURE__ */ e("div", { style: { padding: "20px", maxWidth: "500px" }, children: /* @__PURE__ */ e(
247
+ i,
248
+ {
249
+ title: "Подробная инструкция",
250
+ content: /* @__PURE__ */ d("div", { children: [
251
+ /* @__PURE__ */ e("h3", { style: { margin: "0 0 12px 0" }, children: "Как пользоваться системой" }),
252
+ /* @__PURE__ */ e("p", { style: { margin: "0 0 8px 0" }, children: "Это пошаговая инструкция по использованию нашего сервиса:" }),
253
+ /* @__PURE__ */ d("ol", { style: { margin: "0 0 12px 0", paddingLeft: "20px" }, children: [
254
+ /* @__PURE__ */ e("li", { children: "Зарегистрируйтесь в системе" }),
255
+ /* @__PURE__ */ e("li", { children: "Подтвердите ваш email адрес" }),
256
+ /* @__PURE__ */ e("li", { children: "Заполните профиль пользователя" }),
257
+ /* @__PURE__ */ e("li", { children: "Начните использовать все возможности" })
258
+ ] }),
259
+ /* @__PURE__ */ e("p", { style: { margin: 0, fontSize: "14px", color: "#666" }, children: "Если возникнут вопросы, обратитесь в поддержку." })
53
260
  ] })
261
+ }
262
+ ) })
263
+ }, x = {
264
+ render: () => /* @__PURE__ */ e("div", { style: { padding: "20px", maxWidth: "500px" }, children: /* @__PURE__ */ e(
265
+ i,
266
+ {
267
+ title: "Политика конфиденциальности",
268
+ content: /* @__PURE__ */ d("div", { style: { maxHeight: "200px", overflow: "auto" }, children: [
269
+ /* @__PURE__ */ e("h4", { style: { margin: "0 0 12px 0" }, children: "Наша политика конфиденциальности" }),
270
+ Array.from({ length: 15 }, (n, t) => /* @__PURE__ */ d("p", { style: { margin: "0 0 8px 0", fontSize: "14px" }, children: [
271
+ "Это пункт номер ",
272
+ t + 1,
273
+ " в политике конфиденциальности. Здесь описываются условия использования ваших персональных данных и наши обязательства по их защите."
274
+ ] }, t))
275
+ ] })
276
+ }
277
+ ) })
278
+ }, g = {
279
+ render: () => /* @__PURE__ */ d("div", { style: { padding: "20px", maxWidth: "600px" }, children: [
280
+ /* @__PURE__ */ e("h3", { style: { margin: "0 0 20px 0" }, children: "Часто задаваемые вопросы" }),
281
+ /* @__PURE__ */ d("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
282
+ /* @__PURE__ */ e(
283
+ i,
284
+ {
285
+ title: "Как создать аккаунт?",
286
+ content: "Для создания аккаунта перейдите на страницу регистрации, заполните обязательные поля и подтвердите ваш email адрес."
287
+ }
288
+ ),
289
+ /* @__PURE__ */ e(
290
+ i,
291
+ {
292
+ title: "Как восстановить пароль?",
293
+ content: "На странице входа нажмите 'Забыли пароль?', введите ваш email и следуйте инструкциям в письме."
294
+ }
295
+ ),
296
+ /* @__PURE__ */ e(
297
+ i,
298
+ {
299
+ title: "Какие методы оплаты принимаются?",
300
+ content: "Мы принимаем банковские карты Visa, MasterCard, Мир, а также электронные кошельки и переводы через СБП."
301
+ }
302
+ ),
303
+ /* @__PURE__ */ e(
304
+ i,
305
+ {
306
+ title: "Есть ли мобильное приложение?",
307
+ content: "Да, наше мобильное приложение доступно в App Store и Google Play. Скачайте его для удобного доступа с мобильных устройств."
308
+ }
309
+ )
54
310
  ] })
55
- }
56
- }, h = {
57
- args: {
58
- title: "Аккордеон с длинным контентом",
59
- content: Array.from({ length: 10 }, (n, o) => /* @__PURE__ */ e("p", { children: [
60
- "Это строка номер ",
61
- o + 1,
62
- " в длинном контенте."
63
- ] }, o))
64
- }
311
+ ] })
312
+ }, y = {
313
+ render: () => /* @__PURE__ */ e("div", { style: { padding: "20px", maxWidth: "500px" }, children: /* @__PURE__ */ d("div", { style: { display: "flex", flexDirection: "column", gap: "16px" }, children: [
314
+ /* @__PURE__ */ e(
315
+ i,
316
+ {
317
+ title: "Форма настроек",
318
+ content: /* @__PURE__ */ d("div", { style: { display: "flex", flexDirection: "column", gap: "12px", padding: "12px" }, children: [
319
+ /* @__PURE__ */ d("div", { children: [
320
+ /* @__PURE__ */ e("label", { style: { display: "block", marginBottom: "4px", fontWeight: "500" }, children: "Имя пользователя:" }),
321
+ /* @__PURE__ */ e(
322
+ "input",
323
+ {
324
+ type: "text",
325
+ style: {
326
+ width: "100%",
327
+ padding: "8px",
328
+ border: "1px solid #ddd",
329
+ borderRadius: "4px"
330
+ },
331
+ placeholder: "Введите имя"
332
+ }
333
+ )
334
+ ] }),
335
+ /* @__PURE__ */ d("div", { children: [
336
+ /* @__PURE__ */ e("label", { style: { display: "block", marginBottom: "4px", fontWeight: "500" }, children: "Email:" }),
337
+ /* @__PURE__ */ e(
338
+ "input",
339
+ {
340
+ type: "email",
341
+ style: {
342
+ width: "100%",
343
+ padding: "8px",
344
+ border: "1px solid #ddd",
345
+ borderRadius: "4px"
346
+ },
347
+ placeholder: "email@example.com"
348
+ }
349
+ )
350
+ ] }),
351
+ /* @__PURE__ */ e(
352
+ "button",
353
+ {
354
+ style: {
355
+ padding: "8px 16px",
356
+ backgroundColor: "#007bff",
357
+ color: "white",
358
+ border: "none",
359
+ borderRadius: "4px",
360
+ cursor: "pointer"
361
+ },
362
+ children: "Сохранить настройки"
363
+ }
364
+ )
365
+ ] })
366
+ }
367
+ ),
368
+ /* @__PURE__ */ e(
369
+ i,
370
+ {
371
+ title: "Список функций",
372
+ content: /* @__PURE__ */ d("ul", { style: { margin: 0, paddingLeft: "20px" }, children: [
373
+ /* @__PURE__ */ e("li", { children: "Автоматическое сохранение" }),
374
+ /* @__PURE__ */ e("li", { children: "Синхронизация между устройствами" }),
375
+ /* @__PURE__ */ e("li", { children: "Расширенные настройки приватности" }),
376
+ /* @__PURE__ */ e("li", { children: "Поддержка нескольких языков" }),
377
+ /* @__PURE__ */ e("li", { children: "Гибкая система уведомлений" })
378
+ ] })
379
+ }
380
+ ),
381
+ /* @__PURE__ */ e(
382
+ i,
383
+ {
384
+ title: "Статистика использования",
385
+ content: /* @__PURE__ */ d("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "12px" }, children: [
386
+ /* @__PURE__ */ d(
387
+ "div",
388
+ {
389
+ style: {
390
+ textAlign: "center",
391
+ padding: "8px",
392
+ backgroundColor: "#e9ecef",
393
+ borderRadius: "4px"
394
+ },
395
+ children: [
396
+ /* @__PURE__ */ e("div", { style: { fontSize: "24px", fontWeight: "bold" }, children: "1,234" }),
397
+ /* @__PURE__ */ e("div", { style: { fontSize: "12px", color: "#666" }, children: "активных пользователей" })
398
+ ]
399
+ }
400
+ ),
401
+ /* @__PURE__ */ d(
402
+ "div",
403
+ {
404
+ style: {
405
+ textAlign: "center",
406
+ padding: "8px",
407
+ backgroundColor: "#e9ecef",
408
+ borderRadius: "4px"
409
+ },
410
+ children: [
411
+ /* @__PURE__ */ e("div", { style: { fontSize: "24px", fontWeight: "bold" }, children: "89%" }),
412
+ /* @__PURE__ */ e("div", { style: { fontSize: "12px", color: "#666" }, children: "удовлетворенности" })
413
+ ]
414
+ }
415
+ )
416
+ ] })
417
+ }
418
+ )
419
+ ] }) })
65
420
  };
66
421
  export {
67
- c as Default,
68
- d as Opened,
69
- a as WithHTMLContent,
70
- h as WithLongContent,
71
- s as default
422
+ g as AccordionGroup,
423
+ p as BasicAccordeon,
424
+ h as Documentation,
425
+ o as Playground,
426
+ y as WithDifferentContentTypes,
427
+ a as WithDynamicTitles,
428
+ s as WithHTMLContent,
429
+ x as WithLongContent,
430
+ c as default
72
431
  };