diff --git a/.changeset/chatty-peas-switch.md b/.changeset/chatty-peas-switch.md new file mode 100644 index 00000000000..82ea8b11bce --- /dev/null +++ b/.changeset/chatty-peas-switch.md @@ -0,0 +1,5 @@ +--- +'@itwin/itwinui-react': minor +--- + +Added `status` prop to `Input`, `Textarea` and `Select`. diff --git a/.changeset/clean-buttons-remember.md b/.changeset/clean-buttons-remember.md new file mode 100644 index 00000000000..0732a47b0e3 --- /dev/null +++ b/.changeset/clean-buttons-remember.md @@ -0,0 +1,5 @@ +--- +'@itwin/itwinui-css': minor +--- + +Added `iui-input-group-wrapper` class to allow inline labels for input groups. diff --git a/.changeset/cyan-jars-perform.md b/.changeset/cyan-jars-perform.md new file mode 100644 index 00000000000..65d52812579 --- /dev/null +++ b/.changeset/cyan-jars-perform.md @@ -0,0 +1,9 @@ +--- +'@itwin/itwinui-react': minor +--- + +Added two new components for building complex input layouts. + - `InputGrid` for the "outer" layout (label, inputs and statusMessage) + - `InputWithDecorations` for the "inner" layout (start icon/button, end icon/button) + +`LabeledInput`, `LabeledSelect`, `LabeledTextarea` and table `DatePickerInput` have been updated to make use of these new components internally. diff --git a/.changeset/eighty-chefs-tan.md b/.changeset/eighty-chefs-tan.md new file mode 100644 index 00000000000..d8f96b6a897 --- /dev/null +++ b/.changeset/eighty-chefs-tan.md @@ -0,0 +1,5 @@ +--- +'@itwin/itwinui-css': major +--- + +`iui-transfer-list-listbox-label` and `iui-input-container` classes were removed. diff --git a/.changeset/friendly-pigs-end.md b/.changeset/friendly-pigs-end.md new file mode 100644 index 00000000000..8f4b9b08f42 --- /dev/null +++ b/.changeset/friendly-pigs-end.md @@ -0,0 +1,5 @@ +--- +'@itwin/itwinui-css': minor +--- + +Added `iui-input-grid` class for outer input styling. diff --git a/.changeset/healthy-vans-behave.md b/.changeset/healthy-vans-behave.md new file mode 100644 index 00000000000..608c200a98e --- /dev/null +++ b/.changeset/healthy-vans-behave.md @@ -0,0 +1,5 @@ +--- +'@itwin/itwinui-react': major +--- + +Removed `inputStyle` and `inputClassName` props from `LabeledInput`; style and className props are being passed down to input. Added `wrapperProps`, `labelProps`, `messageProps`, `messageIconProps`, `inputWrapperProps` to pass props to sub elements. diff --git a/.changeset/hip-comics-switch.md b/.changeset/hip-comics-switch.md new file mode 100644 index 00000000000..f8e463aef6a --- /dev/null +++ b/.changeset/hip-comics-switch.md @@ -0,0 +1,5 @@ +--- +'@itwin/itwinui-react': minor +--- + +Added new `padded` prop to `Icon`. diff --git a/.changeset/light-buses-swim.md b/.changeset/light-buses-swim.md new file mode 100644 index 00000000000..573f2309ca3 --- /dev/null +++ b/.changeset/light-buses-swim.md @@ -0,0 +1,5 @@ +--- +'@itwin/itwinui-react': major +--- + +Removed `selectStyle` and `selectClassName` props from `LabeledSelect`; style and className props are being passed down to textarea. Added `wrapperProps`, `labelProps`, `messageProps`, `messageIconProps` to pass props to sub elements. diff --git a/.changeset/loud-pants-vanish.md b/.changeset/loud-pants-vanish.md new file mode 100644 index 00000000000..364a340f7c2 --- /dev/null +++ b/.changeset/loud-pants-vanish.md @@ -0,0 +1,5 @@ +--- +'@itwin/itwinui-css': minor +--- + +Added status styling to `input` and `select`. diff --git a/.changeset/nervous-kiwis-peel.md b/.changeset/nervous-kiwis-peel.md new file mode 100644 index 00000000000..ab55f6a6382 --- /dev/null +++ b/.changeset/nervous-kiwis-peel.md @@ -0,0 +1,5 @@ +--- +'@itwin/itwinui-react': major +--- + +Removed `textareaStyle` and `textareaClassName` props from `LabeledTextarea`; style and className props are being passed down to textarea. Added `wrapperProps`, `labelProps`, `messageProps`, `messageIconProps` to pass props to sub elements. diff --git a/.changeset/silly-buttons-run.md b/.changeset/silly-buttons-run.md new file mode 100644 index 00000000000..7c9087e5069 --- /dev/null +++ b/.changeset/silly-buttons-run.md @@ -0,0 +1,5 @@ +--- +'@itwin/itwinui-css': minor +--- + +Added padded styling to Icon using `data-iui-padded` attribute. diff --git a/.changeset/strong-parrots-pretend.md b/.changeset/strong-parrots-pretend.md new file mode 100644 index 00000000000..b7099dd813c --- /dev/null +++ b/.changeset/strong-parrots-pretend.md @@ -0,0 +1,5 @@ +--- +'@itwin/itwinui-css': minor +--- + +Added `iui-status-message` class to wrap StatusMessage icon and content. diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ColorPicker.test.ts-With Alpha.png b/apps/storybook/cypress-visual-screenshots/baseline/ColorPicker.test.ts-With Alpha.png index 8d5d09b1f1f..2e162209847 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ColorPicker.test.ts-With Alpha.png and b/apps/storybook/cypress-visual-screenshots/baseline/ColorPicker.test.ts-With Alpha.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Basic (Closed).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Basic (Closed).png index 16cacf3d249..9f603fdccc0 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Basic (Closed).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Basic (Closed).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Basic (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Basic (Open).png index 92660bfa304..6e8013dbb32 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Basic (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Basic (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Controlled (Closed).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Controlled (Closed).png index b6757f15cc5..dbb070e8415 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Controlled (Closed).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Controlled (Closed).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Controlled (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Controlled (Open).png index 06a82667fdd..67cca8dc12f 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Controlled (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Controlled (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Custom Renderer (Closed).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Custom Renderer (Closed).png index 8751425a9a2..7aa5da25138 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Custom Renderer (Closed).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Custom Renderer (Closed).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Custom Renderer (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Custom Renderer (Open).png index 46b68fb0aa9..24556dd8b74 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Custom Renderer (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Custom Renderer (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Multiple Select (Closed).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Multiple Select (Closed).png index c450918e4f9..9b14a13bef8 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Multiple Select (Closed).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Multiple Select (Closed).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Multiple Select (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Multiple Select (Open).png index 5bb1f17282f..b779c91b727 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Multiple Select (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Multiple Select (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Virtualized (Closed).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Virtualized (Closed).png index 16cacf3d249..9f603fdccc0 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Virtualized (Closed).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Virtualized (Closed).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Virtualized (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Virtualized (Open).png index 0ef49ee848b..2258a4162a7 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Virtualized (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-Virtualized (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Custom Message Icon (Closed).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Custom Message Icon (Closed).png index 84752c8ea20..e83ea1b101d 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Custom Message Icon (Closed).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Custom Message Icon (Closed).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Custom Message Icon (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Custom Message Icon (Open).png index 92660bfa304..6e8013dbb32 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Custom Message Icon (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Custom Message Icon (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Label (Closed).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Label (Closed).png index a8f5e311798..cfe7d2052de 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Label (Closed).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Label (Closed).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Label (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Label (Open).png index 77d8dc5fe67..51d596244db 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Label (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Label (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Message (Closed).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Message (Closed).png index bb971634dee..39a003cd70e 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Message (Closed).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Message (Closed).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Message (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Message (Open).png index 92660bfa304..6e8013dbb32 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Message (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Message (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Status (Closed).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Status (Closed).png index 768f828c6bb..3de161b24dc 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Status (Closed).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Status (Closed).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Status (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Status (Open).png index 25efb263b94..4058a573e66 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Status (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/ComboBox.test.ts-With Status (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/DropdownMenu.test.ts-With Content (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/DropdownMenu.test.ts-With Content (Open).png index 43ec5d2200b..07a8da8e829 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/DropdownMenu.test.ts-With Content (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/DropdownMenu.test.ts-With Content (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Fieldset.test.ts-Basic.png b/apps/storybook/cypress-visual-screenshots/baseline/Fieldset.test.ts-Basic.png index 4d95cf6dd2b..84e20d8380f 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Fieldset.test.ts-Basic.png and b/apps/storybook/cypress-visual-screenshots/baseline/Fieldset.test.ts-Basic.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Fieldset.test.ts-Disabled.png b/apps/storybook/cypress-visual-screenshots/baseline/Fieldset.test.ts-Disabled.png index db8ea3f164e..6ee467d10b1 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Fieldset.test.ts-Disabled.png and b/apps/storybook/cypress-visual-screenshots/baseline/Fieldset.test.ts-Disabled.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/FileUpload.test.ts-Wrapping Input.png b/apps/storybook/cypress-visual-screenshots/baseline/FileUpload.test.ts-Wrapping Input.png index c98b0ebbeae..39c927a81d2 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/FileUpload.test.ts-Wrapping Input.png and b/apps/storybook/cypress-visual-screenshots/baseline/FileUpload.test.ts-Wrapping Input.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Icon.test.ts-Padded.png b/apps/storybook/cypress-visual-screenshots/baseline/Icon.test.ts-Padded.png new file mode 100755 index 00000000000..807e8d79aff Binary files /dev/null and b/apps/storybook/cypress-visual-screenshots/baseline/Icon.test.ts-Padded.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/InformationPanel.test.ts-Custom Actions.png b/apps/storybook/cypress-visual-screenshots/baseline/InformationPanel.test.ts-Custom Actions.png index f9a5d0044ec..619c7ff5b98 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/InformationPanel.test.ts-Custom Actions.png and b/apps/storybook/cypress-visual-screenshots/baseline/InformationPanel.test.ts-Custom Actions.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Input.test.ts-Status.png b/apps/storybook/cypress-visual-screenshots/baseline/Input.test.ts-Status.png new file mode 100755 index 00000000000..d9874c68e88 Binary files /dev/null and b/apps/storybook/cypress-visual-screenshots/baseline/Input.test.ts-Status.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/InputGrid.test.ts-With Input With Decorations.png b/apps/storybook/cypress-visual-screenshots/baseline/InputGrid.test.ts-With Input With Decorations.png new file mode 100755 index 00000000000..da5c7fb8c38 Binary files /dev/null and b/apps/storybook/cypress-visual-screenshots/baseline/InputGrid.test.ts-With Input With Decorations.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/InputGrid.test.ts-With Input.png b/apps/storybook/cypress-visual-screenshots/baseline/InputGrid.test.ts-With Input.png new file mode 100755 index 00000000000..4b2debf4de4 Binary files /dev/null and b/apps/storybook/cypress-visual-screenshots/baseline/InputGrid.test.ts-With Input.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/InputGrid.test.ts-With Search.png b/apps/storybook/cypress-visual-screenshots/baseline/InputGrid.test.ts-With Search.png new file mode 100755 index 00000000000..2b5d23fea7e Binary files /dev/null and b/apps/storybook/cypress-visual-screenshots/baseline/InputGrid.test.ts-With Search.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/InputGrid.test.ts-With Select.png b/apps/storybook/cypress-visual-screenshots/baseline/InputGrid.test.ts-With Select.png new file mode 100755 index 00000000000..c99168b4f53 Binary files /dev/null and b/apps/storybook/cypress-visual-screenshots/baseline/InputGrid.test.ts-With Select.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/InputWithDecoration.test.ts-Basic.png b/apps/storybook/cypress-visual-screenshots/baseline/InputWithDecoration.test.ts-Basic.png new file mode 100755 index 00000000000..aa57f3910d6 Binary files /dev/null and b/apps/storybook/cypress-visual-screenshots/baseline/InputWithDecoration.test.ts-Basic.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/InputWithDecoration.test.ts-Disabled.png b/apps/storybook/cypress-visual-screenshots/baseline/InputWithDecoration.test.ts-Disabled.png new file mode 100755 index 00000000000..66d7ac31aec Binary files /dev/null and b/apps/storybook/cypress-visual-screenshots/baseline/InputWithDecoration.test.ts-Disabled.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/InputWithDecoration.test.ts-Small.png b/apps/storybook/cypress-visual-screenshots/baseline/InputWithDecoration.test.ts-Small.png new file mode 100755 index 00000000000..1b710b01552 Binary files /dev/null and b/apps/storybook/cypress-visual-screenshots/baseline/InputWithDecoration.test.ts-Small.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/InputWithDecoration.test.ts-Status.png b/apps/storybook/cypress-visual-screenshots/baseline/InputWithDecoration.test.ts-Status.png new file mode 100755 index 00000000000..2a64f481273 Binary files /dev/null and b/apps/storybook/cypress-visual-screenshots/baseline/InputWithDecoration.test.ts-Status.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Label.test.ts-Basic.png b/apps/storybook/cypress-visual-screenshots/baseline/Label.test.ts-Basic.png index e77c7350f0f..6a1ed97d072 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Label.test.ts-Basic.png and b/apps/storybook/cypress-visual-screenshots/baseline/Label.test.ts-Basic.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Basic.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Basic.png index c46240f216d..e695b6a24bc 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Basic.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Basic.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Disabled.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Disabled.png index 5af2bdc2f4e..8353a73b77f 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Disabled.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Disabled.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Hybrid Layout.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Hybrid Layout.png index f8995ddb906..1fb0271287a 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Hybrid Layout.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Hybrid Layout.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Inline.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Inline.png index 056020f7365..0740606912d 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Inline.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Inline.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Negative.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Negative.png index ff13687f17d..a4234afd31c 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Negative.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Negative.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Positive.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Positive.png index 6d8608e0df4..bb2c8af3643 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Positive.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Positive.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Warning.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Warning.png index 55e85e02b36..fbfb63e6c40 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Warning.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-Warning.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-With Custom Icon.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-With Custom Icon.png index c92dc04c35f..9d577f18886 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-With Custom Icon.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-With Custom Icon.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-With Message.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-With Message.png index e2ab2ee563b..94835684e77 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-With Message.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledInput.test.ts-With Message.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-Basic.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-Basic.png index a629486b20b..7bd8706a3f3 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-Basic.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-Basic.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-Negative.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-Negative.png index e47e2362f1f..5d784b315d4 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-Negative.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-Negative.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-Positive.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-Positive.png index 29655689dcd..8ad8711f173 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-Positive.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-Positive.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-Warning.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-Warning.png index ced2eb76929..e01eed4b092 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-Warning.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-Warning.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-With Custom Icon.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-With Custom Icon.png index 2b1b6f118ad..87fae4fffc0 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-With Custom Icon.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledSelect.test.ts-With Custom Icon.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Basic.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Basic.png index ab08ae616a0..6bb3a36d220 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Basic.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Basic.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Disabled.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Disabled.png index e20b35a39dd..37278e54c5f 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Disabled.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Disabled.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Inline.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Inline.png index d9ea1301256..be32dd48e2b 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Inline.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Inline.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Negative.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Negative.png index a0f86eec79c..09b9acb60af 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Negative.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Negative.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Positive.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Positive.png index c587eb2e0b4..42d6a03bad3 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Positive.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Positive.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Warning.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Warning.png index bdda2ef3e5b..40868c442df 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Warning.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-Warning.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-With Custom Icon.png b/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-With Custom Icon.png index 50c0e54c79b..59b0823ba20 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-With Custom Icon.png and b/apps/storybook/cypress-visual-screenshots/baseline/LabeledTextarea.test.ts-With Custom Icon.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/SearchBox.test.ts-Expandable (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/SearchBox.test.ts-Expandable (Open).png index a13b961bf66..5223c80c93d 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/SearchBox.test.ts-Expandable (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/SearchBox.test.ts-Expandable (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/SearchBox.test.ts-Expandable With Custom Items (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/SearchBox.test.ts-Expandable With Custom Items (Open).png index e23b5c962b5..ed3fee3113b 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/SearchBox.test.ts-Expandable With Custom Items (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/SearchBox.test.ts-Expandable With Custom Items (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/SearchBox.test.ts-With Custom Action (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/SearchBox.test.ts-With Custom Action (Open).png index ede6a28d346..4be97c65c56 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/SearchBox.test.ts-With Custom Action (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/SearchBox.test.ts-With Custom Action (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Basic (Closed).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Basic (Closed).png index 52879325beb..b60a3ed0114 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Basic (Closed).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Basic (Closed).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Basic (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Basic (Open).png index e7d8fd174f4..35ddb7006e0 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Basic (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Basic (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Custom (Closed With Value).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Custom (Closed With Value).png index 30f3c2991d5..e855746ea0f 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Custom (Closed With Value).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Custom (Closed With Value).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Custom (Closed).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Custom (Closed).png index 52879325beb..b60a3ed0114 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Custom (Closed).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Custom (Closed).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Custom (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Custom (Open).png index a349a0c3316..d342ed0fb39 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Custom (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Custom (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Many Items (Closed).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Many Items (Closed).png index 52879325beb..b60a3ed0114 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Many Items (Closed).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Many Items (Closed).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Many Items (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Many Items (Open).png index d18581e3792..46f2e1cd3b9 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Many Items (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Many Items (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi (Closed).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi (Closed).png index 52879325beb..b60a3ed0114 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi (Closed).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi (Closed).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi (Multi selected).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi (Multi selected).png index 4a081d3f062..4920c65afcf 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi (Multi selected).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi (Multi selected).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi (Open).png index d18581e3792..46f2e1cd3b9 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi Custom Renderer (Closed).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi Custom Renderer (Closed).png index 52879325beb..b60a3ed0114 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi Custom Renderer (Closed).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi Custom Renderer (Closed).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi Custom Renderer (Multi selected).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi Custom Renderer (Multi selected).png index fa023dec552..6f315216123 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi Custom Renderer (Multi selected).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi Custom Renderer (Multi selected).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi Custom Renderer (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi Custom Renderer (Open).png index d18581e3792..46f2e1cd3b9 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi Custom Renderer (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Multi Custom Renderer (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Sublabels (Closed).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Sublabels (Closed).png index fc83c4cab5a..fd20edad3be 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Sublabels (Closed).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Sublabels (Closed).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Sublabels (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Sublabels (Open).png index 42de4ef28a2..2d4c112e76d 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Sublabels (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Sublabels (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Truncate Middle Text (Closed).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Truncate Middle Text (Closed).png index c131b5fe679..dc8472b910d 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Truncate Middle Text (Closed).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Truncate Middle Text (Closed).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Truncate Middle Text (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Truncate Middle Text (Open).png index 0b45172c0d9..e083ca6bc94 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Truncate Middle Text (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-Truncate Middle Text (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-With Icons (Closed).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-With Icons (Closed).png index 4ffe2ea536c..1a19ccc4454 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-With Icons (Closed).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-With Icons (Closed).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-With Icons (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-With Icons (Open).png index 8dc49b398ef..fafb0769d90 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-With Icons (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-With Icons (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-With Selected Value (Open).png b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-With Selected Value (Open).png index 14f97de4fcd..656726f4e23 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-With Selected Value (Open).png and b/apps/storybook/cypress-visual-screenshots/baseline/Select.test.ts-With Selected Value (Open).png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Table.test.ts-Filters.png b/apps/storybook/cypress-visual-screenshots/baseline/Table.test.ts-Filters.png index ae08a6cf39a..47e46986d09 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Table.test.ts-Filters.png and b/apps/storybook/cypress-visual-screenshots/baseline/Table.test.ts-Filters.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Table.test.ts-Resizable Columns.png b/apps/storybook/cypress-visual-screenshots/baseline/Table.test.ts-Resizable Columns.png index bb8ab101e63..a79b2fe6067 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Table.test.ts-Resizable Columns.png and b/apps/storybook/cypress-visual-screenshots/baseline/Table.test.ts-Resizable Columns.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/Tile.test.ts-With Avatar.png b/apps/storybook/cypress-visual-screenshots/baseline/Tile.test.ts-With Avatar.png index b0eb7495227..46382e2ede2 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/Tile.test.ts-With Avatar.png and b/apps/storybook/cypress-visual-screenshots/baseline/Tile.test.ts-With Avatar.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/TimePicker.test.ts-Basic.png b/apps/storybook/cypress-visual-screenshots/baseline/TimePicker.test.ts-Basic.png index 0c368ad5fbc..b05ce9883e3 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/TimePicker.test.ts-Basic.png and b/apps/storybook/cypress-visual-screenshots/baseline/TimePicker.test.ts-Basic.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/TimePicker.test.ts-Combined.png b/apps/storybook/cypress-visual-screenshots/baseline/TimePicker.test.ts-Combined.png index c24976b0656..3152d0194e7 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/TimePicker.test.ts-Combined.png and b/apps/storybook/cypress-visual-screenshots/baseline/TimePicker.test.ts-Combined.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/TimePicker.test.ts-Custom Renderers.png b/apps/storybook/cypress-visual-screenshots/baseline/TimePicker.test.ts-Custom Renderers.png index 532281ef2ce..198f3cb259c 100755 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/TimePicker.test.ts-Custom Renderers.png and b/apps/storybook/cypress-visual-screenshots/baseline/TimePicker.test.ts-Custom Renderers.png differ diff --git a/apps/storybook/cypress-visual-screenshots/baseline/TransferList.test.ts-With Label.png b/apps/storybook/cypress-visual-screenshots/baseline/TransferList.test.ts-With Label.png old mode 100644 new mode 100755 index 21bee535cd3..71bf6c53c82 Binary files a/apps/storybook/cypress-visual-screenshots/baseline/TransferList.test.ts-With Label.png and b/apps/storybook/cypress-visual-screenshots/baseline/TransferList.test.ts-With Label.png differ diff --git a/apps/storybook/src/ComboBox.stories.tsx b/apps/storybook/src/ComboBox.stories.tsx index 9c77b4928b7..e11fd6e82cb 100644 --- a/apps/storybook/src/ComboBox.stories.tsx +++ b/apps/storybook/src/ComboBox.stories.tsx @@ -12,6 +12,7 @@ import { StatusMessage, SelectOption, MenuItemSkeleton, + Flex, } from '@itwin/itwinui-react'; import { SvgCamera } from '@itwin/itwinui-icons-react'; @@ -382,7 +383,7 @@ export const WithLabel: StoryFn> = (args) => { const options = React.useMemo(() => countriesList, []); return ( - <> + > = (args) => { }} {...args} /> - + ); }; WithLabel.args = { diff --git a/apps/storybook/src/Icon.stories.tsx b/apps/storybook/src/Icon.stories.tsx index 4ce8f82466e..e3b9b696f59 100644 --- a/apps/storybook/src/Icon.stories.tsx +++ b/apps/storybook/src/Icon.stories.tsx @@ -4,7 +4,7 @@ *--------------------------------------------------------------------------------------------*/ import { Story, Meta } from '@storybook/react'; import React from 'react'; -import { Icon, Slider } from '@itwin/itwinui-react'; +import { Icon, Slider, Flex } from '@itwin/itwinui-react'; import { SvgInfoCircular, SvgPlaceholder, @@ -42,6 +42,26 @@ Default.args = { fill: 'default', }; +export const Padded: Story = (args) => { + return ( + + + + + + ); +}; +Padded.args = { + size: 'medium', + fill: 'default', + padded: true, +}; + export const Statuses: Story = (args) => { return ( <> diff --git a/apps/storybook/src/Icon.test.ts b/apps/storybook/src/Icon.test.ts index 5a599ace2a3..4e8f3fd00e9 100644 --- a/apps/storybook/src/Icon.test.ts +++ b/apps/storybook/src/Icon.test.ts @@ -9,6 +9,7 @@ describe('Icon', () => { 'Default', 'Statuses', 'Sizes', + 'Padded', // 'Autoscale', // exclude Autoscale because it is only an interactive demo for the user ]; diff --git a/apps/storybook/src/Input.stories.tsx b/apps/storybook/src/Input.stories.tsx index a1cb137f5b4..26473ada2f1 100644 --- a/apps/storybook/src/Input.stories.tsx +++ b/apps/storybook/src/Input.stories.tsx @@ -39,3 +39,12 @@ Small.args = { placeholder: 'Small Input', size: 'small', }; + +export const Status: Story = (args) => { + return ; +}; + +Status.args = { + placeholder: 'Positive Input', + status: 'positive', +}; diff --git a/apps/storybook/src/Input.test.ts b/apps/storybook/src/Input.test.ts index adc832e6956..361d29d638f 100644 --- a/apps/storybook/src/Input.test.ts +++ b/apps/storybook/src/Input.test.ts @@ -4,7 +4,7 @@ *--------------------------------------------------------------------------------------------*/ describe('Input', () => { const storyPath = 'Input/Input'; - const tests = ['Basic', 'Disabled', 'Small']; + const tests = ['Basic', 'Disabled', 'Small', 'Status']; tests.forEach((testName) => { it(testName, function () { diff --git a/apps/storybook/src/InputGrid.stories.tsx b/apps/storybook/src/InputGrid.stories.tsx new file mode 100644 index 00000000000..0d1f117f250 --- /dev/null +++ b/apps/storybook/src/InputGrid.stories.tsx @@ -0,0 +1,89 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Bentley Systems, Incorporated. All rights reserved. + * See LICENSE.md in the project root for license terms and full copyright notice. + *--------------------------------------------------------------------------------------------*/ +import { Story, Meta } from '@storybook/react'; +import React from 'react'; +import { + Input, + InputGrid, + InputWithDecorations, + Label, + Icon, + SearchBox, + Select, + StatusMessage, +} from '@itwin/itwinui-react'; +import { SvgAdd, SvgAirplane } from '@itwin/itwinui-icons-react'; + +type InputGridProps = React.ComponentProps; + +export default { + component: InputGrid, + title: 'Utilities/InputGrid', + argTypes: {}, +} as Meta; + +export const WithInput: Story = () => { + return ( + + + + This is message + + ); +}; + +export const WithInputWithDecorations: Story = () => { + return ( + + + + + + + + + + + + This is message + + ); +}; + +export const WithSelect: Story = () => { + const options = [ + { value: 1, label: 'Bali' }, + { value: 2, label: 'Hawaii' }, + { value: 3, label: 'Madagascar' }, + ]; + const [value, setValue] = React.useState(undefined); + + return ( + + + - +
+ + + +
diff --git a/packages/itwinui-css/backstop/tests/checkbox.html b/packages/itwinui-css/backstop/tests/checkbox.html index a2d34847841..6b7d7c84d48 100644 --- a/packages/itwinui-css/backstop/tests/checkbox.html +++ b/packages/itwinui-css/backstop/tests/checkbox.html @@ -47,8 +47,8 @@

Checkbox

Default

-
-
Checkbox group label
+
+
Checkbox group label
-
Help message.
+
+
Help message.
+
-
-
Checkbox group label
+
+
Checkbox group label
-
Help message.
+
+
Help message.
+
-
-
Checkbox group label
+
+
Checkbox group label
- -
- Positive message. +
+
+ +
+
Positive message.
-
-
Checkbox group label
+
+
Checkbox group label
- -
- Warning message. +
+
+ +
+
Warning message.
-
-
Checkbox group label
+
+
Checkbox group label
- -
- Negative message. +
+
+ +
+
Negative message.
-
-
Checkbox group label
+
+
Checkbox group label
-
Help message.
+
+
Help message.
+
@@ -327,8 +351,11 @@

Default

Inline

-
-
Checkbox group label
+
+
Checkbox group label
-
-
Checkbox group label
+
+
Checkbox group label
-
-
Checkbox group label
+
+
Checkbox group label
- +
+
+ +
+
-
-
Checkbox group label
+
+
Checkbox group label
- +
+
+ +
+
-
-
Checkbox group label
+
+
Checkbox group label
- -
+
+
+ +
+

diff --git a/packages/itwinui-css/backstop/tests/color-picker.html b/packages/itwinui-css/backstop/tests/color-picker.html index f3be1e070a6..b6d8e36c1f1 100644 --- a/packages/itwinui-css/backstop/tests/color-picker.html +++ b/packages/itwinui-css/backstop/tests/color-picker.html @@ -266,7 +266,7 @@

Advanced

>
-
+
Advanced data-iui-size="small" />
-
+
Advanced data-iui-size="small" />
-
+
Advanced data-iui-size="small" />
-
+
Advanced >
-
+
Advanced data-iui-size="small" />
-
+
Advanced data-iui-size="small" />
-
+
Advanced data-iui-size="small" />
-
+
Advanced >
-
+
Text filter
-