Commit 12272c0
committed
style(website): format React sample code and add missing img alt attributes
Format all 379 sample.tsx files with Prettier (printWidth: 80, tabWidth: 2)
for consistent multi-line JSX props, style objects, and indentation.
Add missing alt attributes to all img tags across samples.
Fix mismatched JSX tag in DynamicDateRange sample.
Fix imperative DOM mutation in BarcodeScannerDialog sample.1 parent 894e58e commit 12272c0
377 files changed
Lines changed: 14820 additions & 7029 deletions
File tree
- packages/website/docs/_samples
- ai
- Button
- ButtonMenu
- ButtonSplitMenu
- IconOnlyButton
- Input/Basic
- PromptInput/Basic
- TextArea
- Basic
- Extended
- compat/Table
- ActiveRows
- Basic
- Grouping
- GrowingOnButtonPress
- GrowingOnScroll
- MultipleSelection
- NoData
- Popin
- SingleSelection
- StickyHeader
- fiori
- BardcodeScannerDialog/Basic
- DynamicPage/Basic
- DynamicSideContent
- Basic
- EqualSplit
- SideContentPosition
- FlexibleColumnLayout
- Basic
- LayoutsConfiguration
- IllustratedMessage
- Basic
- CustomTitle
- WithDialog
- MediaGallery
- Basic
- Horizontal
- Interactive
- ThumbnailCustom
- Vertical
- VideoContent
- WithDisabledItem
- WithSelectedItem
- NotificationList
- Basic
- GroupItems
- InShellBar
- Page
- Basic
- ProductSwitch
- Basic
- WithImageSlot
- WithShellBar
- Search
- Actions
- AdvancedFilter
- Advanced
- Basic
- Byline
- Loading
- ShowMore
- ShellBar
- Advanced
- Basic
- MultipleNonProductiveInstances
- MultipleProductiveInstances
- Overflow
- TrialExample
- Timeline
- Basic
- Horizontal
- InCard
- WithGroups
- WithGrowing
- WithState
- UploadCollection
- Basic
- DragAndDrop
- RenamingFiles
- VariousUploadStates
- UserMenu
- Advanced
- Basic
- UserSettingsDialog/Basic
- ViewSettingsDialog/Basic
- Wizard
- Basic
- PageMode
- main
- AvatarBadge
- Basic
- ValueStates
- AvatarGroup
- Basic
- GroupWithPopover
- IndividualWithPopover
- TypesAndSizes
- Avatar
- Basic
- ColorSchemes
- Decorative
- Interactive
- Shapes
- Sizes
- Styles
- Variants
- WithBadge
- WithIcon
- WithImage
- Bar
- AccessibleRole
- Basic
- Breadcrumbs
- Basic
- BreadcrumbsOverflow
- BreadcrumbsStyles
- NoCurrentPage
- BusyIndicator
- Basic
- Sizes
- TextPlacement
- WithComponent
- Button
- Basic
- ButtonBadge
- CustomStyling
- Design
- EndIcon
- IconOnly
- Loading
- MenuButton
- TextAndIcon
- CalendarLegend
- Basic
- HideToday
- ItemTypes
- Calendar
- Basic
- Bounds
- CalendarInDifferentTimezone
- CalendarTypes
- CalendarWeekNumbering
- CalendarWithDisabledDates
- CalendarWithLegend
- SelectionModes
- Card
- Basic
- MoreCards
- WithList
- WithTable
- WithTimeline
- Carousel
- AccessibleName
- ArrowsPlacement
- Basic
- CardsWithHidden
- Cyclic
- MultipleItemsPerPage
- PageIndicatorType
- CheckBox
- Basic
- Group
- Indeterminate
- States
- TextWrapping
- ColorPalettePopover
- Basic
- DefaultColor
- MoreColors
- ColorPalette/Basic
- ColorPicker
- Basic
- Simplified
- ComboBox
- Basic
- ClearIcon
- Filters
- Grouping
- SameTextDifferentValues
- SelectedValue
- SuggestionsWrapping
- TwoColumnsLayout
- DatePicker
- Basic
- CalendarTypes
- CalendarWeekNumbering
- ClearIcon
- CustomFormatting
- DatePickerInDifferentTimezone
- MinMax
- State
- DateRangePicker
- Basic
- ClearIcon
- CustomFormatting
- DateFormat
- MinMax
- DateTimePicker
- Basic
- ClearIcon
- CustomFormatting
- DateTimePickerInDifferentTimezone
- FormatPattern
- MinMax
- Dialog
- BarInDialog
- Basic
- DraggableAndResizable
- WithState
- DynamicDateRange
- Basic
- DynamicDateRangeValueSample
- ExpandableText
- Basic
- OverflowModePopover
- FileUploader
- Basic
- FileSizeLimit
- FilesFilter
- MultipleFiles
- WithoutInput
- Form
- Basic
- CustomHeader
- Edit
- EmptySpan
- FreeStyleForm
- GroupColumnSpan
- Groups
- HeaderTextWrapping
- ItemColumnSpan
- LabelSpan
- LabelsOnTop
- Layout
- Icon
- BSIcons
- Basic
- CustomStyling
- Design
- Interactive
- TntIcons
- Input
- Basic
- BuiltInFiltering
- ClearIcon
- CustomStyling
- CustomSuggestions
- DynamicSuggestions
- Label
- SuggestionsWrapping
- Suggestions
- ValueHelpDialog
- ValueStateMessage
- Label
- Basic
- CustomStyling
- TextWrapping
- UsageWithInputs
- Link
- Basic
- CustomStyling
- Design
- TextWrapping
- WithIcons
- List
- Basic
- DragAndDrop
- GroupHeaderStyling
- GroupHeaders
- GrowingOnButtonPress
- Growing
- Modes
- MultipleDrag
- NoData
- SeparationTypes
- StickyHeader
- WrappingBehavior
- Menu
- AditionalText
- Basic
- DynamicallyAddedItems
- ItemGroups
- MenuEndContent
- SubMenu
- MessageStrip
- Basic
- CustomColors
- Custom
- Design
- HideIconAndButton
- MultiComboBox
- Basic
- ClearIcon
- MultiComboBoxCustomValue
- MultiComboBoxGrouping
- MultiComboBoxSelectAll
- SelectedValuesDynamic
- SuggestionsWrapping
- MultiInput
- Basic
- SuggestionsWrapping
- TokenCreation
- Panel
- Basic
- CustomHeader
- Fixed
- StickyHeader
- Popover
- Basic
- Placement
- Resizable
- ProgressIndicator
- Basic
- DisplayValue
- States
- RadioButton
- Basic
- States
- TextWrapping
- RangeSlider
- Basic
- ShowTickmarks
- ShowTooltip
- RatingIndicator
- Basic
- CustomIcons
- Sizes
- ResponsivePopover
- Basic
- Placement
- SegmentedButton
- Basic
- ItemsFitContent
- SelectionModes
- Select
- AdditionalText
- Basic
- CustomOptions
- Selection
- States
- Slider
- Basic
- ShowTickmarks
- ShowTooltip
- SplitButton
- Basic
- Design
- OpeningMenu
- StepInput
- Basic
- MinMax
- States
- ValuePrecision
- Switch
- Basic
- Design
- TabContainer
- Basic
- NestedTabs
- OverflowModeStartAndEnd
- OverflowMode
- ReorderTabsMaxNestingLevel
- ReorderTabs
- TabLayoutInline
- TabLayout
- TextOnlyTabs
- TransparentDesign
- Table
- Basic
- ColumnWidths
- DragAndDrop
- Growing
- HAlign
- HeaderCellActionAI
- Interactive
- NoDataSlot
- Popin
- RowAction
- ScrollMode
- ScrollToLoad
- SelectionMulti
- SelectionSingle
- Selection
- StickyHeaderContainer
- StickyHeader
- Virtualizer
- Tag
- Basic
- Designs
- Interactive
- Set1
- Set2
- Size
- WrappingTypes
- TextArea
- Basic
- Growing
- MaxLength
- States
- Text
- Basic
- CustomStyling
- EmptyIndicatorMode
- Hyphenation
- MaxLines
- RenderWhiteSpace
- TimePicker
- Basic
- FormatPatterns
- States
- TimePickerInDifferentTimezone
- Title
- Basic
- WrappingType
- Toast
- Basic
- Duration
- Placement
- ToggleButton
- Basic
- Design
- IconOnly
- Tokenizer
- Basic
- MultiLine
- Token
- Basic
- TokenInMultiInput
- Toolbar
- AlwaysOverflowingItems
- Basic
- ItemsAlignment
- NeverOverflowingItems
- SpacerAndSeparator
- ToolbarItem
- Tree
- Basic
- CustomTreeItems
- DragAndDrop
- patterns
- AIAcknowledgement
- ScrollToAccept
- StandardAcknowledgement
- AIGuidedPrompt/Dialog
- AIQuickPrompt
- AIRegenerate/Basic
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 21 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
93 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
94 | 102 | | |
95 | 103 | | |
96 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
97 | 110 | | |
98 | 111 | | |
99 | 112 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
125 | 130 | | |
126 | 131 | | |
127 | 132 | | |
| |||
Lines changed: 20 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
76 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
77 | 85 | | |
78 | 86 | | |
79 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
80 | 92 | | |
81 | 93 | | |
82 | 94 | | |
| |||
0 commit comments