@coveord/plasma-mantine 59.4.0 → 59.4.2
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.
- package/.turbo/turbo-build.log +4 -4
- package/.turbo/turbo-test.log +85 -93
- package/dist/.tsbuildinfo +1 -1
- package/dist/cjs/components/Facet/Facet.d.ts +11 -1
- package/dist/cjs/components/Facet/Facet.d.ts.map +1 -1
- package/dist/cjs/components/Facet/Facet.js +25 -14
- package/dist/cjs/components/Facet/Facet.js.map +1 -1
- package/dist/cjs/components/Facet/Facet.module.css +13 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Facet/Facet.d.ts +11 -1
- package/dist/esm/components/Facet/Facet.d.ts.map +1 -1
- package/dist/esm/components/Facet/Facet.js +25 -16
- package/dist/esm/components/Facet/Facet.js.map +1 -1
- package/dist/esm/components/Facet/Facet.module.css +13 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +7 -7
- package/src/components/Facet/Facet.module.css +13 -0
- package/src/components/Facet/Facet.tsx +35 -9
- package/src/components/Facet/__tests__/Facet.component.spec.tsx +20 -0
- package/src/index.ts +1 -0
|
@@ -56,8 +56,21 @@
|
|
|
56
56
|
flex: 1;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
.facetTitleRow {
|
|
60
|
+
width: 100%;
|
|
61
|
+
min-width: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
59
64
|
.facetTitle {
|
|
65
|
+
flex: 1;
|
|
66
|
+
min-width: 0;
|
|
60
67
|
margin-bottom: 0;
|
|
68
|
+
overflow-wrap: anywhere;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.facetRemoveButton {
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
margin-left: auto;
|
|
61
74
|
}
|
|
62
75
|
|
|
63
76
|
.facetSearch {
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ export * from './components/Divider/Divider.js';
|
|
|
67
67
|
export * from './components/Drawer/Drawer.js';
|
|
68
68
|
export * from './components/EllipsisText/EllipsisText.js';
|
|
69
69
|
export * from './components/Facet/Facet.js';
|
|
70
|
+
export * from './components/Facet/FacetTypes.js';
|
|
70
71
|
export * from './components/Fieldset/Fieldset.js';
|
|
71
72
|
export * from './components/FileButton/FileButton.js';
|
|
72
73
|
export * from './components/FileInput/FileInput.js';
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AACvD,OAAO,EAAC,KAAK,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAC,KAAK,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAE1D,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,KAAK,eAAe,EAAC,MAAM,gBAAgB,CAAC;AACpD,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAC,KAAK,kBAAkB,EAAC,MAAM,wBAAwB,CAAC;AAC/D,cAAc,sBAAsB,CAAC;AAIrC,OAAO,EAAC,SAAS,EAAC,MAAM,qCAAqC,CAAC;AAG9D,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,MAAM,uCAAuC,CAAC;AAGvF,cAAc,6BAA6B,CAAC;AAG5C,cAAc,+BAA+B,CAAC;AAG9C,cAAc,yCAAyC,CAAC;AAGxD,cAAc,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AAGpD,cAAc,2BAA2B,CAAC;AAG1C,cAAc,qCAAqC,CAAC;AAGpD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,qCAAqC,CAAC;AAGpD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,6BAA6B,CAAC;AAG5C,cAAc,iCAAiC,CAAC;AAGhD,cAAc,uCAAuC,CAAC;AAGtD,cAAc,2BAA2B,CAAC;AAG1C,cAAc,uCAAuC,CAAC;AAGtD,cAAc,+CAA+C,CAAC;AAG9D,cAAc,+CAA+C,CAAC;AAE9D,OAAO,EAAC,IAAI,EAAC,CAAC;AAGd,cAAc,uCAAuC,CAAC;AACtD,cAAc,wBAAwB,CAAC;AAEvC,OAAO,QAAQ,eAAe,CAAC;IAC3B,UAAiB,0BAA0B;QACvC,MAAM,EAAE,MAAM,CAAC,MAAM,OAAO,YAAY,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,EAAE,kBAAkB,CAAC,CAAC;KACjF;CACJ;AAED,OAAO,QAAQ,uBAAuB,CAAC;IAEnC,UAAU,UAAU,CAAC,KAAK,SAAS,OAAO,EAAE,MAAM;QAC9C;;;;WAIG;QACH,aAAa,EAAE,OAAO,CAAC;KAC1B;CACJ"}
|
package/dist/esm/index.js
CHANGED
|
@@ -109,6 +109,7 @@ export * from './components/Drawer/Drawer.js';
|
|
|
109
109
|
export * from './components/EllipsisText/EllipsisText.js';
|
|
110
110
|
// Facet
|
|
111
111
|
export * from './components/Facet/Facet.js';
|
|
112
|
+
export * from './components/Facet/FacetTypes.js';
|
|
112
113
|
// Fieldset
|
|
113
114
|
export * from './components/Fieldset/Fieldset.js';
|
|
114
115
|
// File Button
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import {MantineColorsTuple, noop} from '@mantine/core';\nimport {type RowData} from '@tanstack/table-core';\nimport {type PlasmaColors} from './theme/PlasmaColors.js';\n\nexport * from '@mantine/carousel';\nexport * from '@mantine/core';\nexport {Pagination} from '@mantine/core';\nexport {type DatesRangeValue} from '@mantine/dates';\nexport * from '@mantine/form';\nexport * from '@mantine/hooks';\nexport * from '@mantine/notifications';\nexport {type NotificationsProps} from '@mantine/notifications';\nexport * from '@tanstack/table-core';\n\n// Export all components\n// Accordion\nexport {Accordion} from './components/Accordion/Accordion.js';\n\n// Action Icon - override Mantine ActionIcon\nexport {ActionIcon, type ActionIconProps} from './components/ActionIcon/ActionIcon.js';\n\n// Affix\nexport * from './components/Affix/Affix.js';\n\n// Anchor\nexport * from './components/Anchor/Anchor.js';\n\n// Angle Slider\nexport * from './components/AngleSlider/AngleSlider.js';\n\n// App Shell\nexport * from './components/AppShell/AppShell.js';\n\n// Aspect Ratio\nexport * from './components/AspectRatio/AspectRatio.js';\n\n// Autocomplete\nexport * from './components/Autocomplete/Autocomplete.js';\n\n// Avatar\nexport * from './components/Avatar/Avatar.js';\n\n// Background Image\nexport * from './components/BackgroundImage/BackgroundImage.js';\n\n// Alert - override Mantine Alert\nexport {Alert} from './components/Alert/Alert.js';\n\n// Badge - override Mantine Badge\nexport {\n Badge,\n type BadgeOverloadFactory,\n type SemanticBadge,\n type SemanticBadgeProps,\n} from './components/Badge/Badge.js';\n\n// Blockquote\nexport * from './components/Blockquote/Blockquote.js';\n\n// Blank Slate\nexport * from './components/BlankSlate/BlankSlate.js';\n\n// Box\nexport * from './components/Box/Box.js';\n\n// Breadcrumbs\nexport * from './components/Breadcrumbs/Breadcrumbs.js';\n\n// Browser Preview\nexport * from './components/BrowserPreview/BrowserPreview.js';\n\n// Burger\nexport * from './components/Burger/Burger.js';\n\n// Button - override Mantine Button\nexport {Button, type ButtonProps} from './components/Button/Button.js';\nexport {type ButtonWithDisabledTooltipProps} from './components/Button/ButtonWithDisabledTooltip.js';\nexport {type ClickHandler} from './hooks/useClickWithLoading.js';\n\n// Card\nexport * from './components/Card/Card.js';\n\n// Center\nexport * from './components/Center/Center.js';\n\n// Check Icon\nexport * from './components/CheckIcon/CheckIcon.js';\n\n// Checkbox\nexport * from './components/Checkbox/Checkbox.js';\n\n// Checkbox Icon\nexport * from './components/CheckboxIcon/CheckboxIcon.js';\n\n// Child Form\nexport * from './components/ChildForm/ChildForm.js';\n\n// Chip - override Mantine Chip\nexport {Chip} from './components/Chip/Chip.js';\n\n// Close Button\nexport * from './components/CloseButton/CloseButton.js';\n\n// Code\nexport * from './components/Code/Code.js';\n\n// Code Editor\nexport * from './components/CodeEditor/CodeEditor.js';\n\n// Collapse\nexport * from './components/Collapse/Collapse.js';\n\n// Collection\nexport * from './components/Collection/Collection.js';\nexport type {\n CollectionCellContext,\n CollectionColumnDef,\n CollectionHeaderContext,\n} from './components/Collection/CollectionColumn.types.js';\nexport {enhanceWithCollectionProps} from './components/Collection/enhanceWithCollectionProps.js';\nexport type {\n CollectionLayout,\n CollectionLayoutBodyProps,\n CollectionLayoutHeaderProps,\n} from './components/Collection/layouts/CollectionLayout.types.js';\n\n// Color Input\nexport * from './components/ColorInput/ColorInput.js';\n\n// Color Picker\nexport * from './components/ColorPicker/ColorPicker.js';\n\n// Color Swatch\nexport * from './components/ColorSwatch/ColorSwatch.js';\n\n// Combobox\nexport * from './components/Combobox/Combobox.js';\n\n// Container\nexport * from './components/Container/Container.js';\n\n// Copy Button\nexport * from './components/CopyButton/CopyButton.js';\n\n// Copy to Clipboard\nexport * from './components/CopyToClipboard/CopyToClipboard.js';\n\n// Date Range Picker\nexport * from './components/DateRangePicker/DateRangePicker.js';\nexport * from './components/DateRangePicker/DateRangePickerInlineCalendar.js';\nexport * from './components/DateRangePicker/DateRangePickerPopoverCalendar.js';\nexport * from './components/DateRangePicker/DateRangePickerPresetSelect.js';\n\n// Date Picker Input\nexport * from './components/DatePickerInput/DatePickerInput.js';\n\n// Date Time Range Picker\nexport * from './components/DateTimeRangePicker/DateTimeRangePicker.js';\n\n// Month Picker Input\nexport * from './components/MonthPickerInput/MonthPickerInput.js';\n\n// Time Picker\nexport * from './components/TimePicker/TimePicker.js';\n\n// Year Picker Input\nexport * from './components/YearPickerInput/YearPickerInput.js';\n\n// Dialog\nexport * from './components/Dialog/Dialog.js';\n\n// Divider\nexport * from './components/Divider/Divider.js';\n\n// Drawer\nexport * from './components/Drawer/Drawer.js';\n\n// Ellipsis Text\nexport * from './components/EllipsisText/EllipsisText.js';\n\n// Facet\nexport * from './components/Facet/Facet.js';\n\n// Fieldset\nexport * from './components/Fieldset/Fieldset.js';\n\n// File Button\nexport * from './components/FileButton/FileButton.js';\n\n// File Input\nexport * from './components/FileInput/FileInput.js';\n\n// Flex\nexport * from './components/Flex/Flex.js';\n\n// Floating Indicator\nexport * from './components/FloatingIndicator/FloatingIndicator.js';\n\n// Focus Trap\nexport * from './components/FocusTrap/FocusTrap.js';\n\n// Grid\nexport * from './components/Grid/Grid.js';\n\n// Group\nexport * from './components/Group/Group.js';\n\n// Header - override @tanstack/table-core Header\nexport {\n Header,\n type HeaderBreadcrumbsProps,\n type HeaderDocAnchorProps,\n type HeaderFactory,\n type HeaderProps,\n type HeaderRightProps,\n type HeaderStyleNames,\n type HeaderVariant,\n} from './components/Header/Header.js';\n\n// Highlight\nexport * from './components/Highlight/Highlight.js';\n\n// Hover Card\nexport * from './components/HoverCard/HoverCard.js';\n\n// Image\nexport * from './components/Image/Image.js';\n\n// Indicator\nexport * from './components/Indicator/Indicator.js';\n\n// Info Token\nexport * from './components/InfoToken/InfoToken.js';\n\n// Input\nexport {\n Input,\n InputLabelInfo,\n type InputFactory,\n type InputLabelInfoFactory,\n type InputLabelInfoProps,\n type InputLabelInfoStylesNames,\n type InputProps,\n} from './components/Input/Input.js';\n\n// Input Base\nexport * from './components/InputBase/InputBase.js';\n\n// Inline Confirm\nexport * from './components/InlineConfirm/InlineConfirm.js';\nexport * from './components/InlineConfirm/InlineConfirmContext.js';\n\n// Json Input\nexport * from './components/JsonInput/JsonInput.js';\n\n// Kbd\nexport * from './components/Kbd/Kbd.js';\n\n// Last Updated\nexport * from './components/LastUpdated/LastUpdated.js';\n\n// List\nexport * from './components/List/List.js';\n\n// Loader\nexport * from './components/Loader/Loader.js';\n\n// Loading Overlay\nexport * from './components/LoadingOverlay/LoadingOverlay.js';\n\n// Circle Loader\nexport * from './components/CircleLoader/CircleLoader.js';\n\n// Mark\nexport * from './components/Mark/Mark.js';\n\n// Menu - override Mantine Menu\nexport {Menu, type MenuItemProps} from './components/Menu/Menu.js';\n\n// Modal - override Mantine Modal\nexport {Modal, type ModalFactory, type ModalProps} from './components/Modal/Modal.js';\nexport * from './components/Modal/ModalFooter.js';\n\n// Modal Base\nexport * from './components/ModalBase/ModalBase.js';\n\n// Multi Select\nexport * from './components/MultiSelect/MultiSelect.js';\n\n// Native Select\nexport * from './components/NativeSelect/NativeSelect.js';\n\n// Nav Link\nexport * from './components/NavLink/NavLink.js';\n\n// Notification\nexport * from './components/Notification/Notification.js';\n\n// Number Formatter\nexport * from './components/NumberFormatter/NumberFormatter.js';\n\n// Number Input\nexport * from './components/NumberInput/NumberInput.js';\n\n// Overlay\nexport * from './components/Overlay/Overlay.js';\n\n// Pagination\nexport * from './components/Pagination/Pagination.js';\n\n// Paper\nexport * from './components/Paper/Paper.js';\n\n// Pill\nexport * from './components/Pill/Pill.js';\n\n// Pills Input\nexport * from './components/PillsInput/PillsInput.js';\n\n// Pin Input\nexport * from './components/PinInput/PinInput.js';\n\n// Popover\nexport * from './components/Popover/Popover.js';\n\n// Portal\nexport * from './components/Portal/Portal.js';\n\n// Progress\nexport * from './components/Progress/Progress.js';\n\n// Prompt\nexport * from './components/Prompt/Prompt.js';\n\n// Radio\nexport * from './components/Radio/Radio.js';\n\n// RadioCard - override Mantine RadioCard\nexport {RadioCard, type RadioCardProps} from './components/RadioCard/RadioCard.js';\n\n// Rating\nexport * from './components/Rating/Rating.js';\n\n// Ring Progress\nexport * from './components/RingProgress/RingProgress.js';\n\n// Scroll Area\nexport * from './components/ScrollArea/ScrollArea.js';\n\n// Segmented Control\nexport * from './components/SegmentedControl/SegmentedControl.js';\n\n// Semi Circle Progress\nexport * from './components/SemiCircleProgress/SemiCircleProgress.js';\n\n// Read Only - override Mantine PasswordInput and Select\nexport {PasswordInput} from './components/PasswordInput/PasswordInput.js';\nexport {Select} from './components/Select/Select.js';\n\n// Simple Grid\nexport * from './components/SimpleGrid/SimpleGrid.js';\n\n// Skeleton\nexport * from './components/Skeleton/Skeleton.js';\n\n// Slider\nexport * from './components/Slider/Slider.js';\n\n// Space\nexport * from './components/Space/Space.js';\n\n// Spoiler\nexport * from './components/Spoiler/Spoiler.js';\n\n// Stack\nexport * from './components/Stack/Stack.js';\n\n// Status Token\nexport * from './components/StatusToken/StatusToken.js';\n\n// Stepper\nexport * from './components/Stepper/Stepper.js';\n\n// Sticky Footer\n\nexport * from './components/StickyFooter/StickyFooter.js';\n\n// Switch\nexport * from './components/Switch/Switch.js';\n\n// Table - override Mantine Table\nexport {flexRender as renderTableCell} from '@tanstack/react-table';\nexport {TableActionsColumn} from './components/Table/table-column/TableActionsColumn.js';\nexport {type TablePredicateProps} from './components/Table/table-predicate/TablePredicate.js';\nexport {Table, TableComponentsOrder, type PlasmaTableFactory} from './components/Table/Table.js';\nexport {\n type TableAction,\n type TableLayout,\n type TableLayoutProps,\n type TableProps,\n} from './components/Table/Table.types.js';\nexport {useTableContext} from './components/Table/TableContext.js';\nexport {useTable, type TableState, type TableStore, type UseTableOptions} from './components/Table/use-table.js';\nexport {useUrlSyncedState, type SearchParamEntry, type UseUrlSyncedStateOptions} from './hooks/use-url-synced-state.js';\n\n// Table of Contents\nexport * from './components/TableOfContents/TableOfContents.js';\n\n// Tabs\nexport * from './components/Tabs/Tabs.js';\n\n// Tags Input\nexport * from './components/TagsInput/TagsInput.js';\n\n// Text\nexport * from './components/Text/Text.js';\n\n// Text Input\nexport * from './components/TextInput/TextInput.js';\n\n// Textarea\nexport * from './components/Textarea/Textarea.js';\n\n// Theme Icon\nexport * from './components/ThemeIcon/ThemeIcon.js';\n\n// Timeline\nexport * from './components/Timeline/Timeline.js';\n\n// Title\nexport * from './components/Title/Title.js';\n\n// Tooltip\nexport * from './components/Tooltip/Tooltip.js';\n\n// Transition\nexport * from './components/Transition/Transition.js';\n\n// Tree\nexport * from './components/Tree/Tree.js';\n\n// Typography\nexport * from './components/Typography/Typography.js';\n\n// Unstyled Button\nexport * from './components/UnstyledButton/UnstyledButton.js';\n\n// Visually Hidden\nexport * from './components/VisuallyHidden/VisuallyHidden.js';\n\nexport {noop};\n\n// Theme\nexport * from './theme/plasmaCSSVariablesResolver.js';\nexport * from './theme/Plasmantine.js';\n\ndeclare module '@mantine/core' {\n export interface MantineThemeColorsOverride {\n colors: Record<keyof typeof PlasmaColors | (string & {}), MantineColorsTuple>;\n }\n}\n\ndeclare module '@tanstack/react-table' {\n // eslint-disable-next-line unused-imports/no-unused-vars\n interface ColumnMeta<TData extends RowData, TValue> {\n /**\n * Whether the column is a control column.\n * Control columns are columns that are not part of the data but are used to control the table.\n * For example, a column that contains checkboxes to select rows.\n */\n controlColumn: boolean;\n }\n}\n"],"names":["noop","Pagination","Accordion","ActionIcon","Alert","Badge","Button","Chip","enhanceWithCollectionProps","Header","Input","InputLabelInfo","Menu","Modal","RadioCard","PasswordInput","Select","flexRender","renderTableCell","TableActionsColumn","Table","TableComponentsOrder","useTableContext","useTable","useUrlSyncedState"],"mappings":"AAAA,SAA4BA,IAAI,QAAO,gBAAgB;AAIvD,cAAc,oBAAoB;AAClC,cAAc,gBAAgB;AAC9B,SAAQC,UAAU,QAAO,gBAAgB;AAEzC,cAAc,gBAAgB;AAC9B,cAAc,iBAAiB;AAC/B,cAAc,yBAAyB;AAEvC,cAAc,uBAAuB;AAErC,wBAAwB;AACxB,YAAY;AACZ,SAAQC,SAAS,QAAO,sCAAsC;AAE9D,4CAA4C;AAC5C,SAAQC,UAAU,QAA6B,wCAAwC;AAEvF,QAAQ;AACR,cAAc,8BAA8B;AAE5C,SAAS;AACT,cAAc,gCAAgC;AAE9C,eAAe;AACf,cAAc,0CAA0C;AAExD,YAAY;A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cAAc,8BAA8B;AAE5C,eAAe;AACf,cAAc,0CAA0C;AAExD,UAAU;AACV,cAAc,kCAAkC;AAEhD,gBAAgB;AAEhB,cAAc,4CAA4C;AAE1D,SAAS;AACT,cAAc,gCAAgC;AAE9C,iCAAiC;AACjC,SAAQC,cAAcC,eAAe,QAAO,wBAAwB;AACpE,SAAQC,kBAAkB,QAAO,wDAAwD;AAEzF,SAAQC,KAAK,EAAEC,oBAAoB,QAAgC,8BAA8B;AAOjG,SAAQC,eAAe,QAAO,qCAAqC;AACnE,SAAQC,QAAQ,QAA+D,kCAAkC;AACjH,SAAQC,iBAAiB,QAA6D,kCAAkC;AAExH,oBAAoB;AACpB,cAAc,kDAAkD;AAEhE,OAAO;AACP,cAAc,4BAA4B;AAE1C,aAAa;AACb,cAAc,sCAAsC;AAEpD,OAAO;AACP,cAAc,4BAA4B;AAE1C,aAAa;AACb,cAAc,sCAAsC;AAEpD,WAAW;AACX,cAAc,oCAAoC;AAElD,aAAa;AACb,cAAc,sCAAsC;AAEpD,WAAW;AACX,cAAc,oCAAoC;AAElD,QAAQ;AACR,cAAc,8BAA8B;AAE5C,UAAU;AACV,cAAc,kCAAkC;AAEhD,aAAa;AACb,cAAc,wCAAwC;AAEtD,OAAO;AACP,cAAc,4BAA4B;AAE1C,aAAa;AACb,cAAc,wCAAwC;AAEtD,kBAAkB;AAClB,cAAc,gDAAgD;AAE9D,kBAAkB;AAClB,cAAc,gDAAgD;AAE9D,SAAQxB,IAAI,GAAE;AAEd,QAAQ;AACR,cAAc,wCAAwC;AACtD,cAAc,yBAAyB"}
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import {MantineColorsTuple, noop} from '@mantine/core';\nimport {type RowData} from '@tanstack/table-core';\nimport {type PlasmaColors} from './theme/PlasmaColors.js';\n\nexport * from '@mantine/carousel';\nexport * from '@mantine/core';\nexport {Pagination} from '@mantine/core';\nexport {type DatesRangeValue} from '@mantine/dates';\nexport * from '@mantine/form';\nexport * from '@mantine/hooks';\nexport * from '@mantine/notifications';\nexport {type NotificationsProps} from '@mantine/notifications';\nexport * from '@tanstack/table-core';\n\n// Export all components\n// Accordion\nexport {Accordion} from './components/Accordion/Accordion.js';\n\n// Action Icon - override Mantine ActionIcon\nexport {ActionIcon, type ActionIconProps} from './components/ActionIcon/ActionIcon.js';\n\n// Affix\nexport * from './components/Affix/Affix.js';\n\n// Anchor\nexport * from './components/Anchor/Anchor.js';\n\n// Angle Slider\nexport * from './components/AngleSlider/AngleSlider.js';\n\n// App Shell\nexport * from './components/AppShell/AppShell.js';\n\n// Aspect Ratio\nexport * from './components/AspectRatio/AspectRatio.js';\n\n// Autocomplete\nexport * from './components/Autocomplete/Autocomplete.js';\n\n// Avatar\nexport * from './components/Avatar/Avatar.js';\n\n// Background Image\nexport * from './components/BackgroundImage/BackgroundImage.js';\n\n// Alert - override Mantine Alert\nexport {Alert} from './components/Alert/Alert.js';\n\n// Badge - override Mantine Badge\nexport {\n Badge,\n type BadgeOverloadFactory,\n type SemanticBadge,\n type SemanticBadgeProps,\n} from './components/Badge/Badge.js';\n\n// Blockquote\nexport * from './components/Blockquote/Blockquote.js';\n\n// Blank Slate\nexport * from './components/BlankSlate/BlankSlate.js';\n\n// Box\nexport * from './components/Box/Box.js';\n\n// Breadcrumbs\nexport * from './components/Breadcrumbs/Breadcrumbs.js';\n\n// Browser Preview\nexport * from './components/BrowserPreview/BrowserPreview.js';\n\n// Burger\nexport * from './components/Burger/Burger.js';\n\n// Button - override Mantine Button\nexport {Button, type ButtonProps} from './components/Button/Button.js';\nexport {type ButtonWithDisabledTooltipProps} from './components/Button/ButtonWithDisabledTooltip.js';\nexport {type ClickHandler} from './hooks/useClickWithLoading.js';\n\n// Card\nexport * from './components/Card/Card.js';\n\n// Center\nexport * from './components/Center/Center.js';\n\n// Check Icon\nexport * from './components/CheckIcon/CheckIcon.js';\n\n// Checkbox\nexport * from './components/Checkbox/Checkbox.js';\n\n// Checkbox Icon\nexport * from './components/CheckboxIcon/CheckboxIcon.js';\n\n// Child Form\nexport * from './components/ChildForm/ChildForm.js';\n\n// Chip - override Mantine Chip\nexport {Chip} from './components/Chip/Chip.js';\n\n// Close Button\nexport * from './components/CloseButton/CloseButton.js';\n\n// Code\nexport * from './components/Code/Code.js';\n\n// Code Editor\nexport * from './components/CodeEditor/CodeEditor.js';\n\n// Collapse\nexport * from './components/Collapse/Collapse.js';\n\n// Collection\nexport * from './components/Collection/Collection.js';\nexport type {\n CollectionCellContext,\n CollectionColumnDef,\n CollectionHeaderContext,\n} from './components/Collection/CollectionColumn.types.js';\nexport {enhanceWithCollectionProps} from './components/Collection/enhanceWithCollectionProps.js';\nexport type {\n CollectionLayout,\n CollectionLayoutBodyProps,\n CollectionLayoutHeaderProps,\n} from './components/Collection/layouts/CollectionLayout.types.js';\n\n// Color Input\nexport * from './components/ColorInput/ColorInput.js';\n\n// Color Picker\nexport * from './components/ColorPicker/ColorPicker.js';\n\n// Color Swatch\nexport * from './components/ColorSwatch/ColorSwatch.js';\n\n// Combobox\nexport * from './components/Combobox/Combobox.js';\n\n// Container\nexport * from './components/Container/Container.js';\n\n// Copy Button\nexport * from './components/CopyButton/CopyButton.js';\n\n// Copy to Clipboard\nexport * from './components/CopyToClipboard/CopyToClipboard.js';\n\n// Date Range Picker\nexport * from './components/DateRangePicker/DateRangePicker.js';\nexport * from './components/DateRangePicker/DateRangePickerInlineCalendar.js';\nexport * from './components/DateRangePicker/DateRangePickerPopoverCalendar.js';\nexport * from './components/DateRangePicker/DateRangePickerPresetSelect.js';\n\n// Date Picker Input\nexport * from './components/DatePickerInput/DatePickerInput.js';\n\n// Date Time Range Picker\nexport * from './components/DateTimeRangePicker/DateTimeRangePicker.js';\n\n// Month Picker Input\nexport * from './components/MonthPickerInput/MonthPickerInput.js';\n\n// Time Picker\nexport * from './components/TimePicker/TimePicker.js';\n\n// Year Picker Input\nexport * from './components/YearPickerInput/YearPickerInput.js';\n\n// Dialog\nexport * from './components/Dialog/Dialog.js';\n\n// Divider\nexport * from './components/Divider/Divider.js';\n\n// Drawer\nexport * from './components/Drawer/Drawer.js';\n\n// Ellipsis Text\nexport * from './components/EllipsisText/EllipsisText.js';\n\n// Facet\nexport * from './components/Facet/Facet.js';\nexport * from './components/Facet/FacetTypes.js';\n\n// Fieldset\nexport * from './components/Fieldset/Fieldset.js';\n\n// File Button\nexport * from './components/FileButton/FileButton.js';\n\n// File Input\nexport * from './components/FileInput/FileInput.js';\n\n// Flex\nexport * from './components/Flex/Flex.js';\n\n// Floating Indicator\nexport * from './components/FloatingIndicator/FloatingIndicator.js';\n\n// Focus Trap\nexport * from './components/FocusTrap/FocusTrap.js';\n\n// Grid\nexport * from './components/Grid/Grid.js';\n\n// Group\nexport * from './components/Group/Group.js';\n\n// Header - override @tanstack/table-core Header\nexport {\n Header,\n type HeaderBreadcrumbsProps,\n type HeaderDocAnchorProps,\n type HeaderFactory,\n type HeaderProps,\n type HeaderRightProps,\n type HeaderStyleNames,\n type HeaderVariant,\n} from './components/Header/Header.js';\n\n// Highlight\nexport * from './components/Highlight/Highlight.js';\n\n// Hover Card\nexport * from './components/HoverCard/HoverCard.js';\n\n// Image\nexport * from './components/Image/Image.js';\n\n// Indicator\nexport * from './components/Indicator/Indicator.js';\n\n// Info Token\nexport * from './components/InfoToken/InfoToken.js';\n\n// Input\nexport {\n Input,\n InputLabelInfo,\n type InputFactory,\n type InputLabelInfoFactory,\n type InputLabelInfoProps,\n type InputLabelInfoStylesNames,\n type InputProps,\n} from './components/Input/Input.js';\n\n// Input Base\nexport * from './components/InputBase/InputBase.js';\n\n// Inline Confirm\nexport * from './components/InlineConfirm/InlineConfirm.js';\nexport * from './components/InlineConfirm/InlineConfirmContext.js';\n\n// Json Input\nexport * from './components/JsonInput/JsonInput.js';\n\n// Kbd\nexport * from './components/Kbd/Kbd.js';\n\n// Last Updated\nexport * from './components/LastUpdated/LastUpdated.js';\n\n// List\nexport * from './components/List/List.js';\n\n// Loader\nexport * from './components/Loader/Loader.js';\n\n// Loading Overlay\nexport * from './components/LoadingOverlay/LoadingOverlay.js';\n\n// Circle Loader\nexport * from './components/CircleLoader/CircleLoader.js';\n\n// Mark\nexport * from './components/Mark/Mark.js';\n\n// Menu - override Mantine Menu\nexport {Menu, type MenuItemProps} from './components/Menu/Menu.js';\n\n// Modal - override Mantine Modal\nexport {Modal, type ModalFactory, type ModalProps} from './components/Modal/Modal.js';\nexport * from './components/Modal/ModalFooter.js';\n\n// Modal Base\nexport * from './components/ModalBase/ModalBase.js';\n\n// Multi Select\nexport * from './components/MultiSelect/MultiSelect.js';\n\n// Native Select\nexport * from './components/NativeSelect/NativeSelect.js';\n\n// Nav Link\nexport * from './components/NavLink/NavLink.js';\n\n// Notification\nexport * from './components/Notification/Notification.js';\n\n// Number Formatter\nexport * from './components/NumberFormatter/NumberFormatter.js';\n\n// Number Input\nexport * from './components/NumberInput/NumberInput.js';\n\n// Overlay\nexport * from './components/Overlay/Overlay.js';\n\n// Pagination\nexport * from './components/Pagination/Pagination.js';\n\n// Paper\nexport * from './components/Paper/Paper.js';\n\n// Pill\nexport * from './components/Pill/Pill.js';\n\n// Pills Input\nexport * from './components/PillsInput/PillsInput.js';\n\n// Pin Input\nexport * from './components/PinInput/PinInput.js';\n\n// Popover\nexport * from './components/Popover/Popover.js';\n\n// Portal\nexport * from './components/Portal/Portal.js';\n\n// Progress\nexport * from './components/Progress/Progress.js';\n\n// Prompt\nexport * from './components/Prompt/Prompt.js';\n\n// Radio\nexport * from './components/Radio/Radio.js';\n\n// RadioCard - override Mantine RadioCard\nexport {RadioCard, type RadioCardProps} from './components/RadioCard/RadioCard.js';\n\n// Rating\nexport * from './components/Rating/Rating.js';\n\n// Ring Progress\nexport * from './components/RingProgress/RingProgress.js';\n\n// Scroll Area\nexport * from './components/ScrollArea/ScrollArea.js';\n\n// Segmented Control\nexport * from './components/SegmentedControl/SegmentedControl.js';\n\n// Semi Circle Progress\nexport * from './components/SemiCircleProgress/SemiCircleProgress.js';\n\n// Read Only - override Mantine PasswordInput and Select\nexport {PasswordInput} from './components/PasswordInput/PasswordInput.js';\nexport {Select} from './components/Select/Select.js';\n\n// Simple Grid\nexport * from './components/SimpleGrid/SimpleGrid.js';\n\n// Skeleton\nexport * from './components/Skeleton/Skeleton.js';\n\n// Slider\nexport * from './components/Slider/Slider.js';\n\n// Space\nexport * from './components/Space/Space.js';\n\n// Spoiler\nexport * from './components/Spoiler/Spoiler.js';\n\n// Stack\nexport * from './components/Stack/Stack.js';\n\n// Status Token\nexport * from './components/StatusToken/StatusToken.js';\n\n// Stepper\nexport * from './components/Stepper/Stepper.js';\n\n// Sticky Footer\n\nexport * from './components/StickyFooter/StickyFooter.js';\n\n// Switch\nexport * from './components/Switch/Switch.js';\n\n// Table - override Mantine Table\nexport {flexRender as renderTableCell} from '@tanstack/react-table';\nexport {TableActionsColumn} from './components/Table/table-column/TableActionsColumn.js';\nexport {type TablePredicateProps} from './components/Table/table-predicate/TablePredicate.js';\nexport {Table, TableComponentsOrder, type PlasmaTableFactory} from './components/Table/Table.js';\nexport {\n type TableAction,\n type TableLayout,\n type TableLayoutProps,\n type TableProps,\n} from './components/Table/Table.types.js';\nexport {useTableContext} from './components/Table/TableContext.js';\nexport {useTable, type TableState, type TableStore, type UseTableOptions} from './components/Table/use-table.js';\nexport {useUrlSyncedState, type SearchParamEntry, type UseUrlSyncedStateOptions} from './hooks/use-url-synced-state.js';\n\n// Table of Contents\nexport * from './components/TableOfContents/TableOfContents.js';\n\n// Tabs\nexport * from './components/Tabs/Tabs.js';\n\n// Tags Input\nexport * from './components/TagsInput/TagsInput.js';\n\n// Text\nexport * from './components/Text/Text.js';\n\n// Text Input\nexport * from './components/TextInput/TextInput.js';\n\n// Textarea\nexport * from './components/Textarea/Textarea.js';\n\n// Theme Icon\nexport * from './components/ThemeIcon/ThemeIcon.js';\n\n// Timeline\nexport * from './components/Timeline/Timeline.js';\n\n// Title\nexport * from './components/Title/Title.js';\n\n// Tooltip\nexport * from './components/Tooltip/Tooltip.js';\n\n// Transition\nexport * from './components/Transition/Transition.js';\n\n// Tree\nexport * from './components/Tree/Tree.js';\n\n// Typography\nexport * from './components/Typography/Typography.js';\n\n// Unstyled Button\nexport * from './components/UnstyledButton/UnstyledButton.js';\n\n// Visually Hidden\nexport * from './components/VisuallyHidden/VisuallyHidden.js';\n\nexport {noop};\n\n// Theme\nexport * from './theme/plasmaCSSVariablesResolver.js';\nexport * from './theme/Plasmantine.js';\n\ndeclare module '@mantine/core' {\n export interface MantineThemeColorsOverride {\n colors: Record<keyof typeof PlasmaColors | (string & {}), MantineColorsTuple>;\n }\n}\n\ndeclare module '@tanstack/react-table' {\n // eslint-disable-next-line unused-imports/no-unused-vars\n interface ColumnMeta<TData extends RowData, TValue> {\n /**\n * Whether the column is a control column.\n * Control columns are columns that are not part of the data but are used to control the table.\n * For example, a column that contains checkboxes to select rows.\n */\n controlColumn: boolean;\n }\n}\n"],"names":["noop","Pagination","Accordion","ActionIcon","Alert","Badge","Button","Chip","enhanceWithCollectionProps","Header","Input","InputLabelInfo","Menu","Modal","RadioCard","PasswordInput","Select","flexRender","renderTableCell","TableActionsColumn","Table","TableComponentsOrder","useTableContext","useTable","useUrlSyncedState"],"mappings":"AAAA,SAA4BA,IAAI,QAAO,gBAAgB;AAIvD,cAAc,oBAAoB;AAClC,cAAc,gBAAgB;AAC9B,SAAQC,UAAU,QAAO,gBAAgB;AAEzC,cAAc,gBAAgB;AAC9B,cAAc,iBAAiB;AAC/B,cAAc,yBAAyB;AAEvC,cAAc,uBAAuB;AAErC,wBAAwB;AACxB,YAAY;AACZ,SAAQC,SAAS,QAAO,sCAAsC;AAE9D,4CAA4C;AAC5C,SAAQC,UAAU,QAA6B,wCAAwC;AAEvF,QAAQ;AACR,cAAc,8BAA8B;AAE5C,SAAS;AACT,cAAc,gCAAgC;AAE9C,eAAe;AACf,cAAc,0CAA0C;AAExD,YAAY;AACZ,cAAc,oCAAoC;AAElD,eAAe;AACf,cAAc,0CAA0C;AAExD,eAAe;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AA0C;AAExD,UAAU;AACV,cAAc,kCAAkC;AAEhD,gBAAgB;AAEhB,cAAc,4CAA4C;AAE1D,SAAS;AACT,cAAc,gCAAgC;AAE9C,iCAAiC;AACjC,SAAQC,cAAcC,eAAe,QAAO,wBAAwB;AACpE,SAAQC,kBAAkB,QAAO,wDAAwD;AAEzF,SAAQC,KAAK,EAAEC,oBAAoB,QAAgC,8BAA8B;AAOjG,SAAQC,eAAe,QAAO,qCAAqC;AACnE,SAAQC,QAAQ,QAA+D,kCAAkC;AACjH,SAAQC,iBAAiB,QAA6D,kCAAkC;AAExH,oBAAoB;AACpB,cAAc,kDAAkD;AAEhE,OAAO;AACP,cAAc,4BAA4B;AAE1C,aAAa;AACb,cAAc,sCAAsC;AAEpD,OAAO;AACP,cAAc,4BAA4B;AAE1C,aAAa;AACb,cAAc,sCAAsC;AAEpD,WAAW;AACX,cAAc,oCAAoC;AAElD,aAAa;AACb,cAAc,sCAAsC;AAEpD,WAAW;AACX,cAAc,oCAAoC;AAElD,QAAQ;AACR,cAAc,8BAA8B;AAE5C,UAAU;AACV,cAAc,kCAAkC;AAEhD,aAAa;AACb,cAAc,wCAAwC;AAEtD,OAAO;AACP,cAAc,4BAA4B;AAE1C,aAAa;AACb,cAAc,wCAAwC;AAEtD,kBAAkB;AAClB,cAAc,gDAAgD;AAE9D,kBAAkB;AAClB,cAAc,gDAAgD;AAE9D,SAAQxB,IAAI,GAAE;AAEd,QAAQ;AACR,cAAc,wCAAwC;AACtD,cAAc,yBAAyB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coveord/plasma-mantine",
|
|
3
|
-
"version": "59.4.
|
|
3
|
+
"version": "59.4.2",
|
|
4
4
|
"description": "A Plasma flavoured Mantine theme",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"plasma",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"fast-deep-equal": "3.1.3",
|
|
82
82
|
"lodash.defaultsdeep": "4.6.1",
|
|
83
83
|
"monaco-editor": "0.55.1",
|
|
84
|
-
"@coveord/plasma-react-icons": "59.1
|
|
85
|
-
"@coveord/plasma-tokens": "59.1
|
|
84
|
+
"@coveord/plasma-react-icons": "59.4.1",
|
|
85
|
+
"@coveord/plasma-tokens": "59.4.1"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@mantine/carousel": "8.3.18",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@mantine/modals": "8.3.18",
|
|
95
95
|
"@mantine/notifications": "8.3.18",
|
|
96
96
|
"@swc/cli": "0.8.1",
|
|
97
|
-
"@swc/core": "1.15.
|
|
97
|
+
"@swc/core": "1.15.32",
|
|
98
98
|
"@testing-library/dom": "10.4.1",
|
|
99
99
|
"@testing-library/jest-dom": "6.9.1",
|
|
100
100
|
"@testing-library/react": "16.3.2",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"embla-carousel-react": "8.6.0",
|
|
109
109
|
"eslint-plugin-testing-library": "7.16.2",
|
|
110
110
|
"eslint-plugin-vitest-globals": "1.6.1",
|
|
111
|
-
"jsdom": "29.0
|
|
112
|
-
"postcss": "8.5.
|
|
111
|
+
"jsdom": "29.1.0",
|
|
112
|
+
"postcss": "8.5.12",
|
|
113
113
|
"postcss-preset-mantine": "^1.11.0",
|
|
114
114
|
"postcss-simple-vars": "^7.0.1",
|
|
115
115
|
"publint": "0.3.18",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"rimraf": "6.1.3",
|
|
119
119
|
"tslib": "2.8.1",
|
|
120
120
|
"typescript": "5.9.3",
|
|
121
|
-
"vitest": "4.1.
|
|
121
|
+
"vitest": "4.1.5"
|
|
122
122
|
},
|
|
123
123
|
"peerDependencies": {
|
|
124
124
|
"@mantine/carousel": "^8.0.2",
|
|
@@ -56,8 +56,21 @@
|
|
|
56
56
|
flex: 1;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
.facetTitleRow {
|
|
60
|
+
width: 100%;
|
|
61
|
+
min-width: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
59
64
|
.facetTitle {
|
|
65
|
+
flex: 1;
|
|
66
|
+
min-width: 0;
|
|
60
67
|
margin-bottom: 0;
|
|
68
|
+
overflow-wrap: anywhere;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.facetRemoveButton {
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
margin-left: auto;
|
|
61
74
|
}
|
|
62
75
|
|
|
63
76
|
.facetSearch {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {IconSearch} from '@coveord/plasma-react-icons';
|
|
2
2
|
import {
|
|
3
3
|
Box,
|
|
4
4
|
BoxProps,
|
|
5
|
+
CloseButton,
|
|
5
6
|
Combobox,
|
|
6
7
|
Divider,
|
|
7
8
|
factory,
|
|
8
9
|
Factory,
|
|
10
|
+
Group,
|
|
9
11
|
StylesApiProps,
|
|
10
12
|
Text,
|
|
11
13
|
TextInput,
|
|
@@ -17,7 +19,6 @@ import {useUncontrolled} from '@mantine/hooks';
|
|
|
17
19
|
import {clsx} from 'clsx';
|
|
18
20
|
import {FunctionComponent, ReactElement, ReactNode, useEffect} from 'react';
|
|
19
21
|
import {groupOptions} from '../../utils/groupOptions.js';
|
|
20
|
-
import {ActionIcon} from '../ActionIcon/ActionIcon.js';
|
|
21
22
|
import {DefaultFacetItem} from './DefaultFacetItem.js';
|
|
22
23
|
import classes from './Facet.module.css';
|
|
23
24
|
import {FacetScrollArea} from './FacetScrollArea.js';
|
|
@@ -31,7 +32,9 @@ export type FacetStylesNames =
|
|
|
31
32
|
| 'searchInput'
|
|
32
33
|
| 'hiddenSearch'
|
|
33
34
|
| 'facetBody'
|
|
35
|
+
| 'facetTitleRow'
|
|
34
36
|
| 'facetTitle'
|
|
37
|
+
| 'facetRemoveButton'
|
|
35
38
|
| 'facetSearch'
|
|
36
39
|
| 'facetControl'
|
|
37
40
|
| 'separator'
|
|
@@ -49,12 +52,22 @@ export interface FacetProps extends BoxProps, StylesApiProps<FacetFactory> {
|
|
|
49
52
|
* @param values the selected items
|
|
50
53
|
*/
|
|
51
54
|
onChange?: (values: string[]) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Function called when the remove icon is clicked.
|
|
57
|
+
*/
|
|
58
|
+
onRemove?: () => void;
|
|
52
59
|
/**
|
|
53
60
|
* Initial items selection
|
|
54
61
|
*
|
|
55
62
|
* @default []
|
|
56
63
|
*/
|
|
57
64
|
initialSelection?: string[];
|
|
65
|
+
/**
|
|
66
|
+
* Determines if the facet is removable
|
|
67
|
+
*
|
|
68
|
+
* @default false
|
|
69
|
+
*/
|
|
70
|
+
removable?: boolean;
|
|
58
71
|
/**
|
|
59
72
|
* Determined items selection
|
|
60
73
|
*
|
|
@@ -158,6 +171,7 @@ const defaultProps: Partial<FacetProps> = {
|
|
|
158
171
|
limit: Infinity,
|
|
159
172
|
itemComponent: DefaultFacetItem,
|
|
160
173
|
listComponent: FacetScrollArea,
|
|
174
|
+
removable: false,
|
|
161
175
|
};
|
|
162
176
|
|
|
163
177
|
export const Facet: FunctionComponent<FacetProps> = factory<FacetFactory>((_props, ref) => {
|
|
@@ -166,7 +180,9 @@ export const Facet: FunctionComponent<FacetProps> = factory<FacetFactory>((_prop
|
|
|
166
180
|
className,
|
|
167
181
|
data,
|
|
168
182
|
onChange,
|
|
183
|
+
onRemove,
|
|
169
184
|
initialSelection = [],
|
|
185
|
+
removable,
|
|
170
186
|
selection,
|
|
171
187
|
itemComponent: ItemComponent,
|
|
172
188
|
listComponent: ListComponent,
|
|
@@ -260,7 +276,20 @@ export const Facet: FunctionComponent<FacetProps> = factory<FacetFactory>((_prop
|
|
|
260
276
|
<Combobox store={combobox} onOptionSubmit={handleValueSelect}>
|
|
261
277
|
<Combobox.EventsTarget>
|
|
262
278
|
<Box className={classes.facetHeader}>
|
|
263
|
-
|
|
279
|
+
<Group wrap="nowrap" justify="space-between" className={classes.facetTitleRow}>
|
|
280
|
+
{title ? (
|
|
281
|
+
<Title order={5} className={classes.facetTitle}>
|
|
282
|
+
{title}
|
|
283
|
+
</Title>
|
|
284
|
+
) : null}
|
|
285
|
+
{removable ? (
|
|
286
|
+
<CloseButton
|
|
287
|
+
onClick={onRemove}
|
|
288
|
+
className={classes.facetRemoveButton}
|
|
289
|
+
aria-label="remove facet"
|
|
290
|
+
/>
|
|
291
|
+
) : null}
|
|
292
|
+
</Group>
|
|
264
293
|
|
|
265
294
|
<TextInput
|
|
266
295
|
unstyled={unstyled}
|
|
@@ -275,17 +304,14 @@ export const Facet: FunctionComponent<FacetProps> = factory<FacetFactory>((_prop
|
|
|
275
304
|
className={clsx(classes.facetSearch, {[classes.hiddenSearch]: hideSearch})}
|
|
276
305
|
rightSection={
|
|
277
306
|
search ? (
|
|
278
|
-
<
|
|
307
|
+
<CloseButton
|
|
279
308
|
aria-label="clear search"
|
|
280
|
-
color="gray"
|
|
281
309
|
onClick={() => {
|
|
282
310
|
handleSearch('');
|
|
283
311
|
}}
|
|
284
|
-
|
|
285
|
-
<CrossSize16Px height={16} />
|
|
286
|
-
</ActionIcon.Quaternary>
|
|
312
|
+
/>
|
|
287
313
|
) : (
|
|
288
|
-
<
|
|
314
|
+
<IconSearch height={16} />
|
|
289
315
|
)
|
|
290
316
|
}
|
|
291
317
|
/>
|
|
@@ -237,5 +237,25 @@ describe('Facet', () => {
|
|
|
237
237
|
await user.click(screen.getByRole('button', {name: /clear search/i}));
|
|
238
238
|
expect(onSearch).toHaveBeenCalledWith('');
|
|
239
239
|
});
|
|
240
|
+
|
|
241
|
+
it('does not render the remove button by default', () => {
|
|
242
|
+
render(<Facet data={[]} title="My little title" />);
|
|
243
|
+
expect(screen.queryByRole('button', {name: /remove facet/i})).not.toBeInTheDocument();
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
it('renders the remove button when the removable prop is true', () => {
|
|
247
|
+
render(<Facet data={[]} title="My little title" removable />);
|
|
248
|
+
expect(screen.getByRole('button', {name: /remove facet/i})).toBeVisible();
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
it('calls onRemove when clicking the remove button', async () => {
|
|
252
|
+
const user = userEvent.setup();
|
|
253
|
+
const onRemove = vi.fn();
|
|
254
|
+
render(<Facet data={[]} title="My little title" onRemove={onRemove} removable />);
|
|
255
|
+
|
|
256
|
+
await user.click(screen.getByRole('button', {name: /remove facet/i}));
|
|
257
|
+
|
|
258
|
+
expect(onRemove).toHaveBeenCalledTimes(1);
|
|
259
|
+
});
|
|
240
260
|
});
|
|
241
261
|
});
|
package/src/index.ts
CHANGED