@ids-group-ltd/ids-design-system 1.1.1 → 1.1.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/CHANGELOG.md +114 -0
- package/agent/feedback/ds-empty-state.md +2 -1
- package/agent/feedback/ds-tree.md +3 -1
- package/agent/forms/ds-chat-input.md +3 -3
- package/agent/navigation/ds-splitter.md +1 -1
- package/components.md +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs +48 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +14 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +9 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +47 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +14 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/1.1.2.json +135 -0
- package/migrations/README.md +3 -1
- package/package.json +4 -1
- package/schematics/check-overrides/surface.json +10 -1
- package/stylelint/index.mjs +17 -3
- package/stylelint/known-tokens.mjs +139 -0
- package/stylelint/report.mjs +185 -0
- package/stylelint/tokens.mjs +160 -0
- package/stylelint/use-tokens.mjs +397 -0
- package/styles/_check-box.scss +2 -2
- package/styles/_tokens.scss +8 -0
- package/themes/_semantic.scss +9 -1
- package/themes/dark/_theme.scss +5 -1
- package/types/ids-group-ltd-ids-design-system-components-chat.d.ts +18 -2
- package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +7 -2
- package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +20 -2
- package/types/ids-group-ltd-ids-design-system-core.d.ts +19 -1
- package/types/ids-group-ltd-ids-design-system.d.ts +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system.mjs","sources":["../../../src/lib/public-api.ts","../../../src/lib/ids-group-ltd-ids-design-system.ts"],"sourcesContent":["// GENERATED by tools/generate-public-api.mjs from each entry point index.\n// Do not edit. A symbol is published here unless it carries @internal.\n\n// Shared component contracts\nexport {\n DS_FIELD_WARNING_KIND,\n DsChipTemplateDirective,\n DsCreateTemplateDirective,\n DsEmptyTemplateDirective,\n DsGroupLabelTemplateDirective,\n DsOptionTemplateDirective,\n DsPanelFooterTemplateDirective,\n DsPanelHeaderTemplateDirective,\n DsPickerTriggerDirective,\n DsStaticPreview,\n FieldClickFocusDirective,\n} from '@ids-group-ltd/ids-design-system/components';\nexport type {\n DsAriaCurrent,\n DsFieldError,\n DsFieldErrorsInput,\n DsRouterLink,\n} from '@ids-group-ltd/ids-design-system/components';\n\n// Components\nexport {\n ACCORDION,\n AccordionComponent,\n AccordionItemComponent,\n} from '@ids-group-ltd/ids-design-system/components/accordion';\nexport type {\n AccordionChevron,\n AccordionContract,\n AccordionItemRef,\n} from '@ids-group-ltd/ids-design-system/components/accordion';\nexport { AlertComponent } from '@ids-group-ltd/ids-design-system/components/alert';\nexport type { AlertVariant } from '@ids-group-ltd/ids-design-system/components/alert';\nexport {\n AppLayoutComponent,\n AppLayoutNavigationService,\n AppLayoutScrollService,\n RailTriggerDirective,\n} from '@ids-group-ltd/ids-design-system/components/app-layout';\nexport type { DsAppLayoutScrollReset } from '@ids-group-ltd/ids-design-system/components/app-layout';\nexport { AuthLayoutComponent } from '@ids-group-ltd/ids-design-system/components/auth-layout';\nexport { AutocompleteComponent } from '@ids-group-ltd/ids-design-system/components/autocomplete';\nexport type {\n AutocompleteItem,\n AutocompleteOption,\n AutocompleteOptionGroup,\n AutocompleteValueOverflow,\n AutocompleteWidth,\n} from '@ids-group-ltd/ids-design-system/components/autocomplete';\nexport {\n AvatarComponent,\n avatarTint,\n initialsFrom,\n} from '@ids-group-ltd/ids-design-system/components/avatar';\nexport type {\n AvatarSize,\n AvatarStatus,\n AvatarTintOptions,\n} from '@ids-group-ltd/ids-design-system/components/avatar';\nexport { AvatarGroupComponent } from '@ids-group-ltd/ids-design-system/components/avatar-group';\nexport { BadgeComponent } from '@ids-group-ltd/ids-design-system/components/badge';\nexport { BannerComponent } from '@ids-group-ltd/ids-design-system/components/banner';\nexport type { BannerVariant } from '@ids-group-ltd/ids-design-system/components/banner';\nexport { BarComponent } from '@ids-group-ltd/ids-design-system/components/bar';\nexport type {\n BarSemantics,\n BarVariant,\n} from '@ids-group-ltd/ids-design-system/components/bar';\nexport { BarChartComponent } from '@ids-group-ltd/ids-design-system/components/bar-chart';\nexport type {\n BarChartLabelPosition,\n BarChartRow,\n BarChartSegment,\n BarChartValue,\n} from '@ids-group-ltd/ids-design-system/components/bar-chart';\nexport { BottomSheetComponent } from '@ids-group-ltd/ids-design-system/components/bottom-sheet';\nexport {\n BreadcrumbsComponent,\n BreadcrumbsService,\n} from '@ids-group-ltd/ids-design-system/components/breadcrumbs';\nexport type { BreadcrumbItem } from '@ids-group-ltd/ids-design-system/components/breadcrumbs';\nexport { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';\nexport type {\n ButtonAlign,\n ButtonColor,\n ButtonLoadingMode,\n ButtonType,\n ButtonVariant,\n} from '@ids-group-ltd/ids-design-system/components/button';\nexport { ButtonGroupComponent } from '@ids-group-ltd/ids-design-system/components/button-group';\nexport { CardComponent } from '@ids-group-ltd/ids-design-system/components/card';\nexport type {\n CardElevation,\n CardPadding,\n} from '@ids-group-ltd/ids-design-system/components/card';\nexport {\n CHART_DEFAULT_VALUE_SPACE,\n CHART_SCALES,\n ChartComponent,\n ColumnSeriesComponent,\n LineSeriesComponent,\n ReferenceLabelComponent,\n ReferenceLineComponent,\n SeriesAnnotationComponent,\n stackOffsets,\n} from '@ids-group-ltd/ids-design-system/components/chart';\nexport type {\n ChartAnnotation,\n ChartCategoryRange,\n ChartPlot,\n ChartScales,\n ChartStackOffset,\n ColumnSeriesPoint,\n LineSeriesData,\n} from '@ids-group-ltd/ids-design-system/components/chart';\nexport { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nexport type { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nexport type { ChartLegendItem } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nexport type {\n ChartItemTooltipTrigger,\n ChartTooltipContext,\n ChartTooltipEntry,\n ChartTooltipOrigin,\n ChartTooltipTrigger,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nexport {\n AttachmentComponent,\n ChatAttachmentComponent,\n ChatInputComponent,\n ChatMessageComponent,\n ChatStepComponent,\n ChatStepsComponent,\n ChatThreadComponent,\n} from '@ids-group-ltd/ids-design-system/components/chat';\nexport type {\n AttachmentKind,\n ChatInputLayout,\n ChatMessageRole,\n ChatMessageStatus,\n ChatMessageTone,\n ChatStepStatus,\n ChatStepsEnter,\n} from '@ids-group-ltd/ids-design-system/components/chat';\nexport { CheckboxComponent } from '@ids-group-ltd/ids-design-system/components/checkbox';\nexport { ColorPickerComponent } from '@ids-group-ltd/ids-design-system/components/color-picker';\nexport { ColumnChartComponent } from '@ids-group-ltd/ids-design-system/components/column-chart';\nexport type {\n ColumnChartPoint,\n ColumnChartSeries,\n} from '@ids-group-ltd/ids-design-system/components/column-chart';\nexport { DatePickerComponent } from '@ids-group-ltd/ids-design-system/components/date-picker';\nexport type {\n DatePickerMode,\n DatePickerPreset,\n DatePickerValue,\n DateRangeValue,\n DateValue,\n} from '@ids-group-ltd/ids-design-system/components/date-picker';\nexport { DefinitionTermDirective } from '@ids-group-ltd/ids-design-system/components/definition-term';\nexport {\n DescriptionItemComponent,\n DescriptionListComponent,\n} from '@ids-group-ltd/ids-design-system/components/description-list';\nexport type { DescriptionListOrientation } from '@ids-group-ltd/ids-design-system/components/description-list';\nexport { DividerComponent } from '@ids-group-ltd/ids-design-system/components/divider';\nexport type {\n DividerSpacing,\n DividerVariant,\n} from '@ids-group-ltd/ids-design-system/components/divider';\nexport { DrawerComponent } from '@ids-group-ltd/ids-design-system/components/drawer';\nexport type { DrawerPlacement } from '@ids-group-ltd/ids-design-system/components/drawer';\nexport { DropzoneComponent } from '@ids-group-ltd/ids-design-system/components/dropzone';\nexport type {\n DropzoneFile,\n DropzoneFileState,\n} from '@ids-group-ltd/ids-design-system/components/dropzone';\nexport { EmptyStateComponent } from '@ids-group-ltd/ids-design-system/components/empty-state';\nexport type {\n EmptyStateTitleOverflow,\n EmptyStateVariant,\n} from '@ids-group-ltd/ids-design-system/components/empty-state';\nexport {\n DS_FIELD_GROUP,\n FieldGroupComponent,\n} from '@ids-group-ltd/ids-design-system/components/field-group';\nexport type { DsFieldGroupContext } from '@ids-group-ltd/ids-design-system/components/field-group';\nexport {\n FilterBarComponent,\n FilterItemDirective,\n} from '@ids-group-ltd/ids-design-system/components/filter-bar';\nexport { FunnelChartComponent } from '@ids-group-ltd/ids-design-system/components/funnel-chart';\nexport type {\n FunnelChartDrop,\n FunnelChartShape,\n FunnelChartStage,\n} from '@ids-group-ltd/ids-design-system/components/funnel-chart';\nexport { HeatmapChartComponent } from '@ids-group-ltd/ids-design-system/components/heatmap-chart';\nexport type {\n HeatmapChartCell,\n HeatmapChartRow,\n} from '@ids-group-ltd/ids-design-system/components/heatmap-chart';\nexport { IconButtonComponent } from '@ids-group-ltd/ids-design-system/components/icon-button';\nexport type {\n IconButtonType,\n IconButtonVariant,\n} from '@ids-group-ltd/ids-design-system/components/icon-button';\nexport { InfoHintComponent } from '@ids-group-ltd/ids-design-system/components/info-hint';\nexport { InlineEditComponent } from '@ids-group-ltd/ids-design-system/components/inline-edit';\nexport { InputComponent } from '@ids-group-ltd/ids-design-system/components/input';\nexport type { InputType } from '@ids-group-ltd/ids-design-system/components/input';\nexport {\n ContainerComponent,\n InlineComponent,\n StackComponent,\n} from '@ids-group-ltd/ids-design-system/components/layout';\nexport type {\n ContainerSize,\n LayoutAlign,\n LayoutGap,\n LayoutJustify,\n} from '@ids-group-ltd/ids-design-system/components/layout';\nexport { LineChartComponent } from '@ids-group-ltd/ids-design-system/components/line-chart';\nexport type {\n LineChartAnnotation,\n LineChartReading,\n LineChartSeries,\n} from '@ids-group-ltd/ids-design-system/components/line-chart';\nexport {\n ListComponent,\n ListItemComponent,\n} from '@ids-group-ltd/ids-design-system/components/list';\nexport { LoadingOverlayComponent } from '@ids-group-ltd/ids-design-system/components/loading-overlay';\nexport {\n MenuComponent,\n MenuDividerComponent,\n MenuItemComponent,\n} from '@ids-group-ltd/ids-design-system/components/menu';\nexport {\n ModalCardComponent,\n ModalComponent,\n ModalConfirmActionDirective,\n ModalService,\n} from '@ids-group-ltd/ids-design-system/components/modal';\nexport type {\n ModalConfirmOptions,\n ModalConfirmTone,\n ModalSize,\n} from '@ids-group-ltd/ids-design-system/components/modal';\nexport { MultiSelectComponent } from '@ids-group-ltd/ids-design-system/components/multi-select';\nexport type {\n MultiSelectItem,\n MultiSelectOption,\n MultiSelectOptionGroup,\n MultiSelectWidth,\n} from '@ids-group-ltd/ids-design-system/components/multi-select';\nexport { NumberStepperComponent } from '@ids-group-ltd/ids-design-system/components/number-stepper';\nexport { OtpInputComponent } from '@ids-group-ltd/ids-design-system/components/otp-input';\nexport type { OtpMode } from '@ids-group-ltd/ids-design-system/components/otp-input';\nexport { PageFooterComponent } from '@ids-group-ltd/ids-design-system/components/page-footer';\nexport type { PageFooterVariant } from '@ids-group-ltd/ids-design-system/components/page-footer';\nexport { PageHeaderComponent } from '@ids-group-ltd/ids-design-system/components/page-header';\nexport { PaginationComponent } from '@ids-group-ltd/ids-design-system/components/pagination';\nexport type { PaginationLayout } from '@ids-group-ltd/ids-design-system/components/pagination';\nexport {\n PasswordRulesComponent,\n passwordRulesMet,\n} from '@ids-group-ltd/ids-design-system/components/password-rules';\nexport type {\n DsPasswordRule,\n DsPasswordRuleState,\n} from '@ids-group-ltd/ids-design-system/components/password-rules';\nexport { PieChartComponent } from '@ids-group-ltd/ids-design-system/components/pie-chart';\nexport type {\n PieChartCenterPlacement,\n PieChartSlice,\n} from '@ids-group-ltd/ids-design-system/components/pie-chart';\nexport {\n DsPopoverTrigger,\n PopoverComponent,\n} from '@ids-group-ltd/ids-design-system/components/popover';\nexport type {\n PopoverAlign,\n PopoverPlacement,\n} from '@ids-group-ltd/ids-design-system/components/popover';\nexport {\n RADIO_GROUP,\n RadioComponent,\n RadioGroupComponent,\n} from '@ids-group-ltd/ids-design-system/components/radio-group';\nexport type {\n RadioGroupChild,\n RadioGroupContract,\n} from '@ids-group-ltd/ids-design-system/components/radio-group';\nexport { ReserveMessagesDirective } from '@ids-group-ltd/ids-design-system/components/reserve-messages';\nexport { ScatterChartComponent } from '@ids-group-ltd/ids-design-system/components/scatter-chart';\nexport type {\n ScatterChartDecimator,\n ScatterChartReading,\n ScatterChartSeries,\n ScatterPoint,\n} from '@ids-group-ltd/ids-design-system/components/scatter-chart';\nexport { SearchComponent } from '@ids-group-ltd/ids-design-system/components/search';\nexport { SegmentedComponent } from '@ids-group-ltd/ids-design-system/components/segmented';\nexport type { SegmentedOption } from '@ids-group-ltd/ids-design-system/components/segmented';\nexport {\n SelectComponent,\n isSelectOptionGroup,\n} from '@ids-group-ltd/ids-design-system/components/select';\nexport type {\n SelectItem,\n SelectOption,\n SelectOptionGroup,\n SelectWidth,\n} from '@ids-group-ltd/ids-design-system/components/select';\nexport { ShowDirtyDirective } from '@ids-group-ltd/ids-design-system/components/show-dirty';\nexport {\n BrandNameDirective,\n SIDENAV,\n SidenavComponent,\n SidenavGroupComponent,\n SidenavItemComponent,\n} from '@ids-group-ltd/ids-design-system/components/sidenav';\nexport type {\n SidenavContract,\n SidenavItemModel,\n} from '@ids-group-ltd/ids-design-system/components/sidenav';\nexport { SidenavFooterComponent } from '@ids-group-ltd/ids-design-system/components/sidenav-footer';\nexport type {\n SidenavAlertItem,\n SidenavSearchProvider,\n SidenavSearchResult,\n} from '@ids-group-ltd/ids-design-system/components/sidenav-footer';\nexport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nexport { SliderComponent } from '@ids-group-ltd/ids-design-system/components/slider';\nexport { SparklineComponent } from '@ids-group-ltd/ids-design-system/components/sparkline';\nexport type { SparklineScale } from '@ids-group-ltd/ids-design-system/components/sparkline';\nexport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nexport { SplitButtonComponent } from '@ids-group-ltd/ids-design-system/components/split-button';\nexport type {\n SplitButtonItem,\n SplitButtonVariant,\n} from '@ids-group-ltd/ids-design-system/components/split-button';\nexport { SplitterComponent } from '@ids-group-ltd/ids-design-system/components/splitter';\nexport type {\n SplitterOrientation,\n SplitterOverdrag,\n SplitterPane,\n} from '@ids-group-ltd/ids-design-system/components/splitter';\nexport { StatComponent } from '@ids-group-ltd/ids-design-system/components/stat';\nexport { StatusDotComponent } from '@ids-group-ltd/ids-design-system/components/status-dot';\nexport { StepperComponent } from '@ids-group-ltd/ids-design-system/components/stepper';\nexport type {\n StepperLabelPosition,\n StepperOrientation,\n} from '@ids-group-ltd/ids-design-system/components/stepper';\nexport { SwitchComponent } from '@ids-group-ltd/ids-design-system/components/switch';\nexport {\n CellTemplateDirective,\n HeaderFilterDirective,\n TableComponent,\n} from '@ids-group-ltd/ids-design-system/components/table';\nexport type {\n CellTemplateContext,\n HeaderFilterContext,\n SortChangeEvent,\n SortDirection,\n TableCellEditEvent,\n TableColumn,\n TableColumnKind,\n TableExpandMode,\n TableFilterMode,\n TableRowAction,\n TableRowActionEvent,\n TableSortMode,\n} from '@ids-group-ltd/ids-design-system/components/table';\nexport { DsTableColumns } from '@ids-group-ltd/ids-design-system/components/table-columns';\nexport { DsTableExport } from '@ids-group-ltd/ids-design-system/components/table-export';\nexport { DsTableResize } from '@ids-group-ltd/ids-design-system/components/table-resize';\nexport {\n TabComponent,\n TabsComponent,\n} from '@ids-group-ltd/ids-design-system/components/tabs';\nexport type {\n TabsOrientation,\n TabsVariant,\n} from '@ids-group-ltd/ids-design-system/components/tabs';\nexport { TagComponent } from '@ids-group-ltd/ids-design-system/components/tag';\nexport type { TagVariant } from '@ids-group-ltd/ids-design-system/components/tag';\nexport { TextareaComponent } from '@ids-group-ltd/ids-design-system/components/textarea';\nexport type {\n TextareaMaxLengthMode,\n TextareaResize,\n} from '@ids-group-ltd/ids-design-system/components/textarea';\nexport { TimePickerComponent } from '@ids-group-ltd/ids-design-system/components/time-picker';\nexport type {\n TimeFormat,\n TimePickerLoop,\n TimePickerMode,\n TimePickerValue,\n TimeRangeValue,\n TimeValue,\n} from '@ids-group-ltd/ids-design-system/components/time-picker';\nexport {\n TimelineComponent,\n TimelineItemComponent,\n} from '@ids-group-ltd/ids-design-system/components/timeline';\nexport type {\n TimelineStatus,\n TimelineTone,\n} from '@ids-group-ltd/ids-design-system/components/timeline';\nexport {\n DS_TOAST_POSITION_DEFAULT,\n ToastComponent,\n ToastRegionComponent,\n ToastService,\n} from '@ids-group-ltd/ids-design-system/components/toast';\nexport type {\n DsToastHorizontalPosition,\n DsToastPosition,\n DsToastVerticalPosition,\n ToastAction,\n ToastEntry,\n ToastOccurrence,\n ToastOptions,\n ToastPromiseMessages,\n ToastRef,\n ToastUpdate,\n ToastVariant,\n} from '@ids-group-ltd/ids-design-system/components/toast';\nexport { ToggleButtonComponent } from '@ids-group-ltd/ids-design-system/components/toggle-button';\nexport {\n TooltipDirective,\n TooltipPanelComponent,\n} from '@ids-group-ltd/ids-design-system/components/tooltip';\nexport type {\n DsTooltipConfig,\n TooltipPlacement,\n} from '@ids-group-ltd/ids-design-system/components/tooltip';\nexport { TopBarComponent } from '@ids-group-ltd/ids-design-system/components/topbar';\nexport {\n TreeComponent,\n TreeLabelDirective,\n TreeTrailingDirective,\n} from '@ids-group-ltd/ids-design-system/components/tree';\nexport type {\n TreeLabelContext,\n TreeNode,\n TreeSelection,\n TreeTrailingContext,\n} from '@ids-group-ltd/ids-design-system/components/tree';\nexport { W3wComponent } from '@ids-group-ltd/ids-design-system/components/w3w';\nexport { WaterfallChartComponent } from '@ids-group-ltd/ids-design-system/components/waterfall-chart';\nexport type {\n WaterfallChartBar,\n WaterfallChartKind,\n} from '@ids-group-ltd/ids-design-system/components/waterfall-chart';\n\n// Core\nexport {\n DS_CONFIG,\n DS_INTL,\n DS_INTL_DEFAULTS,\n ICONS,\n flattenDsOptions,\n inheritDsConfig,\n isDsOptionGroup,\n isTextClipped,\n provideDsConfig,\n provideDsIntl,\n} from '@ids-group-ltd/ids-design-system/core';\nexport type {\n AnnounceState,\n ChartAxis,\n ChartAxisMode,\n ChartCurve,\n ChartDataTable,\n ChartFormatLocation,\n ChartFrame,\n ChartGaps,\n ChartRendering,\n ChartStackMode,\n ChartThreshold,\n ChartThresholdDash,\n ChartValueFormat,\n DsConfig,\n DsControlWidth,\n DsIntl,\n DsIntlOverrides,\n DsIntlSortDirection,\n DsIntlStepState,\n DsOption,\n DsOptionGroup,\n DsOptionItem,\n DsSize,\n DsStatus,\n DsStatusKey,\n DsStatusRegistry,\n DsTriggerDisplay,\n IconName,\n} from '@ids-group-ltd/ids-design-system/core';\n\n// Icons\nexport {\n DS_ICON_REGISTRY,\n IconComponent,\n provideDsIcons,\n} from '@ids-group-ltd/ids-design-system/icons';\nexport type { DsIconRegistry } from '@ids-group-ltd/ids-design-system/icons';\n\n// Overlay\nexport {\n BodyScrollLockService,\n DsOverlayCloseRef,\n} from '@ids-group-ltd/ids-design-system/overlay';\n\n// Theme\nexport { provideDsTheme } from '@ids-group-ltd/ids-design-system/theme';\nexport type { DsThemeOptions } from '@ids-group-ltd/ids-design-system/theme';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;;ACHA;;AAEG"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system.mjs","sources":["../../../src/lib/public-api.ts","../../../src/lib/ids-group-ltd-ids-design-system.ts"],"sourcesContent":["// GENERATED by tools/generate-public-api.mjs from each entry point index.\n// Do not edit. A symbol is published here unless it carries @internal.\n\n// Shared component contracts\nexport {\n DS_FIELD_WARNING_KIND,\n DsChipTemplateDirective,\n DsCreateTemplateDirective,\n DsEmptyTemplateDirective,\n DsGroupLabelTemplateDirective,\n DsOptionTemplateDirective,\n DsPanelFooterTemplateDirective,\n DsPanelHeaderTemplateDirective,\n DsPickerTriggerDirective,\n DsStaticPreview,\n FieldClickFocusDirective,\n} from '@ids-group-ltd/ids-design-system/components';\nexport type {\n DsAriaCurrent,\n DsFieldError,\n DsFieldErrorsInput,\n DsRouterLink,\n} from '@ids-group-ltd/ids-design-system/components';\n\n// Components\nexport {\n ACCORDION,\n AccordionComponent,\n AccordionItemComponent,\n} from '@ids-group-ltd/ids-design-system/components/accordion';\nexport type {\n AccordionChevron,\n AccordionContract,\n AccordionItemRef,\n} from '@ids-group-ltd/ids-design-system/components/accordion';\nexport { AlertComponent } from '@ids-group-ltd/ids-design-system/components/alert';\nexport type { AlertVariant } from '@ids-group-ltd/ids-design-system/components/alert';\nexport {\n AppLayoutComponent,\n AppLayoutNavigationService,\n AppLayoutScrollService,\n RailTriggerDirective,\n} from '@ids-group-ltd/ids-design-system/components/app-layout';\nexport type { DsAppLayoutScrollReset } from '@ids-group-ltd/ids-design-system/components/app-layout';\nexport { AuthLayoutComponent } from '@ids-group-ltd/ids-design-system/components/auth-layout';\nexport { AutocompleteComponent } from '@ids-group-ltd/ids-design-system/components/autocomplete';\nexport type {\n AutocompleteItem,\n AutocompleteOption,\n AutocompleteOptionGroup,\n AutocompleteValueOverflow,\n AutocompleteWidth,\n} from '@ids-group-ltd/ids-design-system/components/autocomplete';\nexport {\n AvatarComponent,\n avatarTint,\n initialsFrom,\n} from '@ids-group-ltd/ids-design-system/components/avatar';\nexport type {\n AvatarSize,\n AvatarStatus,\n AvatarTintOptions,\n} from '@ids-group-ltd/ids-design-system/components/avatar';\nexport { AvatarGroupComponent } from '@ids-group-ltd/ids-design-system/components/avatar-group';\nexport { BadgeComponent } from '@ids-group-ltd/ids-design-system/components/badge';\nexport { BannerComponent } from '@ids-group-ltd/ids-design-system/components/banner';\nexport type { BannerVariant } from '@ids-group-ltd/ids-design-system/components/banner';\nexport { BarComponent } from '@ids-group-ltd/ids-design-system/components/bar';\nexport type {\n BarSemantics,\n BarVariant,\n} from '@ids-group-ltd/ids-design-system/components/bar';\nexport { BarChartComponent } from '@ids-group-ltd/ids-design-system/components/bar-chart';\nexport type {\n BarChartLabelPosition,\n BarChartRow,\n BarChartSegment,\n BarChartValue,\n} from '@ids-group-ltd/ids-design-system/components/bar-chart';\nexport { BottomSheetComponent } from '@ids-group-ltd/ids-design-system/components/bottom-sheet';\nexport {\n BreadcrumbsComponent,\n BreadcrumbsService,\n} from '@ids-group-ltd/ids-design-system/components/breadcrumbs';\nexport type { BreadcrumbItem } from '@ids-group-ltd/ids-design-system/components/breadcrumbs';\nexport { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';\nexport type {\n ButtonAlign,\n ButtonColor,\n ButtonLoadingMode,\n ButtonType,\n ButtonVariant,\n} from '@ids-group-ltd/ids-design-system/components/button';\nexport { ButtonGroupComponent } from '@ids-group-ltd/ids-design-system/components/button-group';\nexport { CardComponent } from '@ids-group-ltd/ids-design-system/components/card';\nexport type {\n CardElevation,\n CardPadding,\n} from '@ids-group-ltd/ids-design-system/components/card';\nexport {\n CHART_DEFAULT_VALUE_SPACE,\n CHART_SCALES,\n ChartComponent,\n ColumnSeriesComponent,\n LineSeriesComponent,\n ReferenceLabelComponent,\n ReferenceLineComponent,\n SeriesAnnotationComponent,\n stackOffsets,\n} from '@ids-group-ltd/ids-design-system/components/chart';\nexport type {\n ChartAnnotation,\n ChartCategoryRange,\n ChartPlot,\n ChartScales,\n ChartStackOffset,\n ColumnSeriesPoint,\n LineSeriesData,\n} from '@ids-group-ltd/ids-design-system/components/chart';\nexport { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nexport type { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nexport type { ChartLegendItem } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nexport type {\n ChartItemTooltipTrigger,\n ChartTooltipContext,\n ChartTooltipEntry,\n ChartTooltipOrigin,\n ChartTooltipTrigger,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nexport {\n AttachmentComponent,\n ChatAttachmentComponent,\n ChatInputComponent,\n ChatMessageComponent,\n ChatStepComponent,\n ChatStepsComponent,\n ChatThreadComponent,\n} from '@ids-group-ltd/ids-design-system/components/chat';\nexport type {\n AttachmentKind,\n ChatInputBusyAction,\n ChatInputLayout,\n ChatMessageRole,\n ChatMessageStatus,\n ChatMessageTone,\n ChatStepStatus,\n ChatStepsEnter,\n} from '@ids-group-ltd/ids-design-system/components/chat';\nexport { CheckboxComponent } from '@ids-group-ltd/ids-design-system/components/checkbox';\nexport { ColorPickerComponent } from '@ids-group-ltd/ids-design-system/components/color-picker';\nexport { ColumnChartComponent } from '@ids-group-ltd/ids-design-system/components/column-chart';\nexport type {\n ColumnChartPoint,\n ColumnChartSeries,\n} from '@ids-group-ltd/ids-design-system/components/column-chart';\nexport { DatePickerComponent } from '@ids-group-ltd/ids-design-system/components/date-picker';\nexport type {\n DatePickerMode,\n DatePickerPreset,\n DatePickerValue,\n DateRangeValue,\n DateValue,\n} from '@ids-group-ltd/ids-design-system/components/date-picker';\nexport { DefinitionTermDirective } from '@ids-group-ltd/ids-design-system/components/definition-term';\nexport {\n DescriptionItemComponent,\n DescriptionListComponent,\n} from '@ids-group-ltd/ids-design-system/components/description-list';\nexport type { DescriptionListOrientation } from '@ids-group-ltd/ids-design-system/components/description-list';\nexport { DividerComponent } from '@ids-group-ltd/ids-design-system/components/divider';\nexport type {\n DividerSpacing,\n DividerVariant,\n} from '@ids-group-ltd/ids-design-system/components/divider';\nexport { DrawerComponent } from '@ids-group-ltd/ids-design-system/components/drawer';\nexport type { DrawerPlacement } from '@ids-group-ltd/ids-design-system/components/drawer';\nexport { DropzoneComponent } from '@ids-group-ltd/ids-design-system/components/dropzone';\nexport type {\n DropzoneFile,\n DropzoneFileState,\n} from '@ids-group-ltd/ids-design-system/components/dropzone';\nexport { EmptyStateComponent } from '@ids-group-ltd/ids-design-system/components/empty-state';\nexport type {\n EmptyStateAppearance,\n EmptyStateTitleOverflow,\n EmptyStateVariant,\n} from '@ids-group-ltd/ids-design-system/components/empty-state';\nexport {\n DS_FIELD_GROUP,\n FieldGroupComponent,\n} from '@ids-group-ltd/ids-design-system/components/field-group';\nexport type { DsFieldGroupContext } from '@ids-group-ltd/ids-design-system/components/field-group';\nexport {\n FilterBarComponent,\n FilterItemDirective,\n} from '@ids-group-ltd/ids-design-system/components/filter-bar';\nexport { FunnelChartComponent } from '@ids-group-ltd/ids-design-system/components/funnel-chart';\nexport type {\n FunnelChartDrop,\n FunnelChartShape,\n FunnelChartStage,\n} from '@ids-group-ltd/ids-design-system/components/funnel-chart';\nexport { HeatmapChartComponent } from '@ids-group-ltd/ids-design-system/components/heatmap-chart';\nexport type {\n HeatmapChartCell,\n HeatmapChartRow,\n} from '@ids-group-ltd/ids-design-system/components/heatmap-chart';\nexport { IconButtonComponent } from '@ids-group-ltd/ids-design-system/components/icon-button';\nexport type {\n IconButtonType,\n IconButtonVariant,\n} from '@ids-group-ltd/ids-design-system/components/icon-button';\nexport { InfoHintComponent } from '@ids-group-ltd/ids-design-system/components/info-hint';\nexport { InlineEditComponent } from '@ids-group-ltd/ids-design-system/components/inline-edit';\nexport { InputComponent } from '@ids-group-ltd/ids-design-system/components/input';\nexport type { InputType } from '@ids-group-ltd/ids-design-system/components/input';\nexport {\n ContainerComponent,\n InlineComponent,\n StackComponent,\n} from '@ids-group-ltd/ids-design-system/components/layout';\nexport type {\n ContainerSize,\n LayoutAlign,\n LayoutGap,\n LayoutJustify,\n} from '@ids-group-ltd/ids-design-system/components/layout';\nexport { LineChartComponent } from '@ids-group-ltd/ids-design-system/components/line-chart';\nexport type {\n LineChartAnnotation,\n LineChartReading,\n LineChartSeries,\n} from '@ids-group-ltd/ids-design-system/components/line-chart';\nexport {\n ListComponent,\n ListItemComponent,\n} from '@ids-group-ltd/ids-design-system/components/list';\nexport { LoadingOverlayComponent } from '@ids-group-ltd/ids-design-system/components/loading-overlay';\nexport {\n MenuComponent,\n MenuDividerComponent,\n MenuItemComponent,\n} from '@ids-group-ltd/ids-design-system/components/menu';\nexport {\n ModalCardComponent,\n ModalComponent,\n ModalConfirmActionDirective,\n ModalService,\n} from '@ids-group-ltd/ids-design-system/components/modal';\nexport type {\n ModalConfirmOptions,\n ModalConfirmTone,\n ModalSize,\n} from '@ids-group-ltd/ids-design-system/components/modal';\nexport { MultiSelectComponent } from '@ids-group-ltd/ids-design-system/components/multi-select';\nexport type {\n MultiSelectItem,\n MultiSelectOption,\n MultiSelectOptionGroup,\n MultiSelectWidth,\n} from '@ids-group-ltd/ids-design-system/components/multi-select';\nexport { NumberStepperComponent } from '@ids-group-ltd/ids-design-system/components/number-stepper';\nexport { OtpInputComponent } from '@ids-group-ltd/ids-design-system/components/otp-input';\nexport type { OtpMode } from '@ids-group-ltd/ids-design-system/components/otp-input';\nexport { PageFooterComponent } from '@ids-group-ltd/ids-design-system/components/page-footer';\nexport type { PageFooterVariant } from '@ids-group-ltd/ids-design-system/components/page-footer';\nexport { PageHeaderComponent } from '@ids-group-ltd/ids-design-system/components/page-header';\nexport { PaginationComponent } from '@ids-group-ltd/ids-design-system/components/pagination';\nexport type { PaginationLayout } from '@ids-group-ltd/ids-design-system/components/pagination';\nexport {\n PasswordRulesComponent,\n passwordRulesMet,\n} from '@ids-group-ltd/ids-design-system/components/password-rules';\nexport type {\n DsPasswordRule,\n DsPasswordRuleState,\n} from '@ids-group-ltd/ids-design-system/components/password-rules';\nexport { PieChartComponent } from '@ids-group-ltd/ids-design-system/components/pie-chart';\nexport type {\n PieChartCenterPlacement,\n PieChartSlice,\n} from '@ids-group-ltd/ids-design-system/components/pie-chart';\nexport {\n DsPopoverTrigger,\n PopoverComponent,\n} from '@ids-group-ltd/ids-design-system/components/popover';\nexport type {\n PopoverAlign,\n PopoverPlacement,\n} from '@ids-group-ltd/ids-design-system/components/popover';\nexport {\n RADIO_GROUP,\n RadioComponent,\n RadioGroupComponent,\n} from '@ids-group-ltd/ids-design-system/components/radio-group';\nexport type {\n RadioGroupChild,\n RadioGroupContract,\n} from '@ids-group-ltd/ids-design-system/components/radio-group';\nexport { ReserveMessagesDirective } from '@ids-group-ltd/ids-design-system/components/reserve-messages';\nexport { ScatterChartComponent } from '@ids-group-ltd/ids-design-system/components/scatter-chart';\nexport type {\n ScatterChartDecimator,\n ScatterChartReading,\n ScatterChartSeries,\n ScatterPoint,\n} from '@ids-group-ltd/ids-design-system/components/scatter-chart';\nexport { SearchComponent } from '@ids-group-ltd/ids-design-system/components/search';\nexport { SegmentedComponent } from '@ids-group-ltd/ids-design-system/components/segmented';\nexport type { SegmentedOption } from '@ids-group-ltd/ids-design-system/components/segmented';\nexport {\n SelectComponent,\n isSelectOptionGroup,\n} from '@ids-group-ltd/ids-design-system/components/select';\nexport type {\n SelectItem,\n SelectOption,\n SelectOptionGroup,\n SelectWidth,\n} from '@ids-group-ltd/ids-design-system/components/select';\nexport { ShowDirtyDirective } from '@ids-group-ltd/ids-design-system/components/show-dirty';\nexport {\n BrandNameDirective,\n SIDENAV,\n SidenavComponent,\n SidenavGroupComponent,\n SidenavItemComponent,\n} from '@ids-group-ltd/ids-design-system/components/sidenav';\nexport type {\n SidenavContract,\n SidenavItemModel,\n} from '@ids-group-ltd/ids-design-system/components/sidenav';\nexport { SidenavFooterComponent } from '@ids-group-ltd/ids-design-system/components/sidenav-footer';\nexport type {\n SidenavAlertItem,\n SidenavSearchProvider,\n SidenavSearchResult,\n} from '@ids-group-ltd/ids-design-system/components/sidenav-footer';\nexport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nexport { SliderComponent } from '@ids-group-ltd/ids-design-system/components/slider';\nexport { SparklineComponent } from '@ids-group-ltd/ids-design-system/components/sparkline';\nexport type { SparklineScale } from '@ids-group-ltd/ids-design-system/components/sparkline';\nexport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nexport { SplitButtonComponent } from '@ids-group-ltd/ids-design-system/components/split-button';\nexport type {\n SplitButtonItem,\n SplitButtonVariant,\n} from '@ids-group-ltd/ids-design-system/components/split-button';\nexport { SplitterComponent } from '@ids-group-ltd/ids-design-system/components/splitter';\nexport type {\n SplitterOrientation,\n SplitterOverdrag,\n SplitterPane,\n} from '@ids-group-ltd/ids-design-system/components/splitter';\nexport { StatComponent } from '@ids-group-ltd/ids-design-system/components/stat';\nexport { StatusDotComponent } from '@ids-group-ltd/ids-design-system/components/status-dot';\nexport { StepperComponent } from '@ids-group-ltd/ids-design-system/components/stepper';\nexport type {\n StepperLabelPosition,\n StepperOrientation,\n} from '@ids-group-ltd/ids-design-system/components/stepper';\nexport { SwitchComponent } from '@ids-group-ltd/ids-design-system/components/switch';\nexport {\n CellTemplateDirective,\n HeaderFilterDirective,\n TableComponent,\n} from '@ids-group-ltd/ids-design-system/components/table';\nexport type {\n CellTemplateContext,\n HeaderFilterContext,\n SortChangeEvent,\n SortDirection,\n TableCellEditEvent,\n TableColumn,\n TableColumnKind,\n TableExpandMode,\n TableFilterMode,\n TableRowAction,\n TableRowActionEvent,\n TableSortMode,\n} from '@ids-group-ltd/ids-design-system/components/table';\nexport { DsTableColumns } from '@ids-group-ltd/ids-design-system/components/table-columns';\nexport { DsTableExport } from '@ids-group-ltd/ids-design-system/components/table-export';\nexport { DsTableResize } from '@ids-group-ltd/ids-design-system/components/table-resize';\nexport {\n TabComponent,\n TabsComponent,\n} from '@ids-group-ltd/ids-design-system/components/tabs';\nexport type {\n TabsOrientation,\n TabsVariant,\n} from '@ids-group-ltd/ids-design-system/components/tabs';\nexport { TagComponent } from '@ids-group-ltd/ids-design-system/components/tag';\nexport type { TagVariant } from '@ids-group-ltd/ids-design-system/components/tag';\nexport { TextareaComponent } from '@ids-group-ltd/ids-design-system/components/textarea';\nexport type {\n TextareaMaxLengthMode,\n TextareaResize,\n} from '@ids-group-ltd/ids-design-system/components/textarea';\nexport { TimePickerComponent } from '@ids-group-ltd/ids-design-system/components/time-picker';\nexport type {\n TimeFormat,\n TimePickerLoop,\n TimePickerMode,\n TimePickerValue,\n TimeRangeValue,\n TimeValue,\n} from '@ids-group-ltd/ids-design-system/components/time-picker';\nexport {\n TimelineComponent,\n TimelineItemComponent,\n} from '@ids-group-ltd/ids-design-system/components/timeline';\nexport type {\n TimelineStatus,\n TimelineTone,\n} from '@ids-group-ltd/ids-design-system/components/timeline';\nexport {\n DS_TOAST_POSITION_DEFAULT,\n ToastComponent,\n ToastRegionComponent,\n ToastService,\n} from '@ids-group-ltd/ids-design-system/components/toast';\nexport type {\n DsToastHorizontalPosition,\n DsToastPosition,\n DsToastVerticalPosition,\n ToastAction,\n ToastEntry,\n ToastOccurrence,\n ToastOptions,\n ToastPromiseMessages,\n ToastRef,\n ToastUpdate,\n ToastVariant,\n} from '@ids-group-ltd/ids-design-system/components/toast';\nexport { ToggleButtonComponent } from '@ids-group-ltd/ids-design-system/components/toggle-button';\nexport {\n TooltipDirective,\n TooltipPanelComponent,\n} from '@ids-group-ltd/ids-design-system/components/tooltip';\nexport type {\n DsTooltipConfig,\n TooltipPlacement,\n} from '@ids-group-ltd/ids-design-system/components/tooltip';\nexport { TopBarComponent } from '@ids-group-ltd/ids-design-system/components/topbar';\nexport {\n TreeComponent,\n TreeLabelDirective,\n TreeTrailingDirective,\n} from '@ids-group-ltd/ids-design-system/components/tree';\nexport type {\n TreeLabelContext,\n TreeNode,\n TreeSelection,\n TreeToggleOn,\n TreeTrailingContext,\n} from '@ids-group-ltd/ids-design-system/components/tree';\nexport { W3wComponent } from '@ids-group-ltd/ids-design-system/components/w3w';\nexport { WaterfallChartComponent } from '@ids-group-ltd/ids-design-system/components/waterfall-chart';\nexport type {\n WaterfallChartBar,\n WaterfallChartKind,\n} from '@ids-group-ltd/ids-design-system/components/waterfall-chart';\n\n// Core\nexport {\n DS_CONFIG,\n DS_INTL,\n DS_INTL_DEFAULTS,\n ICONS,\n flattenDsOptions,\n inheritDsConfig,\n isDsOptionGroup,\n isTextClipped,\n provideDsConfig,\n provideDsIntl,\n} from '@ids-group-ltd/ids-design-system/core';\nexport type {\n AnnounceState,\n ChartAxis,\n ChartAxisMode,\n ChartCurve,\n ChartDataTable,\n ChartFormatLocation,\n ChartFrame,\n ChartGaps,\n ChartRendering,\n ChartStackMode,\n ChartThreshold,\n ChartThresholdDash,\n ChartValueFormat,\n DsConfig,\n DsControlWidth,\n DsIntl,\n DsIntlOverrides,\n DsIntlSortDirection,\n DsIntlStepState,\n DsOption,\n DsOptionGroup,\n DsOptionItem,\n DsSize,\n DsStatus,\n DsStatusKey,\n DsStatusRegistry,\n DsTriggerDisplay,\n IconName,\n} from '@ids-group-ltd/ids-design-system/core';\n\n// Icons\nexport {\n DS_ICON_REGISTRY,\n IconComponent,\n provideDsIcons,\n} from '@ids-group-ltd/ids-design-system/icons';\nexport type { DsIconRegistry } from '@ids-group-ltd/ids-design-system/icons';\n\n// Overlay\nexport {\n BodyScrollLockService,\n DsOverlayCloseRef,\n} from '@ids-group-ltd/ids-design-system/overlay';\n\n// Theme\nexport { provideDsTheme } from '@ids-group-ltd/ids-design-system/theme';\nexport type { DsThemeOptions } from '@ids-group-ltd/ids-design-system/theme';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;;ACHA;;AAEG"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.1.2",
|
|
3
|
+
"items": [
|
|
4
|
+
{
|
|
5
|
+
"id": "auto-update-plugin-current",
|
|
6
|
+
"kind": "behavior",
|
|
7
|
+
"old": null,
|
|
8
|
+
"new": null,
|
|
9
|
+
"surface": [
|
|
10
|
+
"none"
|
|
11
|
+
],
|
|
12
|
+
"searchHints": [
|
|
13
|
+
"design-system@ids",
|
|
14
|
+
".ids-design-system-upgrade.json"
|
|
15
|
+
],
|
|
16
|
+
"appliesWhen": "Only when this upgrade is run by the design-system plugin for Claude Code (`design-system@ids`, the `auto-update-package` command). An upgrade made by hand has nothing to do here.",
|
|
17
|
+
"action": "Do this before any other item of this version, before the lint step and before any edit. 1. Read the version of the plugin that is running this upgrade: \"version\" in \".claude-plugin/plugin.json\" under that plugin's own root directory. 2. Read the published version: run `claude plugin marketplace update ids`, read \"installLocation\" of the \"ids\" entry in \"plugins/known_marketplaces.json\" in the Claude config directory (\"$CLAUDE_CONFIG_DIR\", else the .claude folder in the home directory), then read \"version\" in \"<installLocation>/plugins/design-system/.claude-plugin/plugin.json\". 3. Compare the two as major.minor.patch. If the running major or minor is lower than the published one: stop this upgrade before it changes anything for this version, and tell the person who started it: \"The design-system plugin is <running>, a minor version behind <published>, and a minor version changes the upgrade steps. Update it with `claude plugin update design-system@ids`, run `/reload-plugins`, then start the upgrade again.\" Offer to run `claude plugin update design-system@ids` for them. Do not apply this version on the older plugin; the run resumes after the update. 4. If only the patch is lower: tell them the same update command and that <published> is out, offer to run it, and go on with the next item if they decline. 5. If the running version is not lower than the published one, nothing to do; go on with the next item.",
|
|
18
|
+
"verify": "The \"plugin.json\" of the plugin running the upgrade has the same major and minor \"version\" as the published \"plugin.json\" of the \"ids\" marketplace, or a higher one.",
|
|
19
|
+
"restore": null
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": "tree-animate-default-on",
|
|
23
|
+
"kind": "behavior",
|
|
24
|
+
"old": "ds-tree",
|
|
25
|
+
"new": null,
|
|
26
|
+
"surface": [
|
|
27
|
+
"template",
|
|
28
|
+
"style"
|
|
29
|
+
],
|
|
30
|
+
"searchHints": [
|
|
31
|
+
"<ds-tree",
|
|
32
|
+
"ds-tree .row",
|
|
33
|
+
"ds-tree > .row",
|
|
34
|
+
"ds-tree .caret"
|
|
35
|
+
],
|
|
36
|
+
"detect": [
|
|
37
|
+
"ds-tree > .row"
|
|
38
|
+
],
|
|
39
|
+
"action": "None, unless a tree must toggle instantly: bind `[animate]=\"false\"` on that `ds-tree`. A stylesheet rule that selects a row as a direct child of `ds-tree` selects `ds-tree .row` instead.",
|
|
40
|
+
"appliesWhen": "Every `ds-tree`. The rows a parent reveals now slide open and shut and its chevron turns a quarter, on `--duration-base` and `--ease-standard`; the first render and `prefers-reduced-motion: reduce` do not animate. Each row sits in a `div.row-shell` with `role=\"none\"`, and the chevron is one `chevronRight` icon rotated by 90 degrees while expanded.",
|
|
41
|
+
"pitfall": "A test that counts rows right after a collapse still finds the leaving rows for the length of the animation: wait for it, or set `[animate]=\"false\"` in the test.",
|
|
42
|
+
"restore": "<ds-tree [animate]=\"false\" />",
|
|
43
|
+
"verify": "Expanding a parent in a `ds-tree` without `[animate]=\"false\"` grows its child rows from zero height over `--duration-base`, and a tree bound `[animate]=\"false\"` shows them at full height in the next frame."
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "field-border-3-to-1",
|
|
47
|
+
"kind": "behavior",
|
|
48
|
+
"old": "--border-field",
|
|
49
|
+
"new": null,
|
|
50
|
+
"surface": [
|
|
51
|
+
"style"
|
|
52
|
+
],
|
|
53
|
+
"searchHints": [
|
|
54
|
+
"--border-field",
|
|
55
|
+
"--neutral-500",
|
|
56
|
+
"--neutral-400"
|
|
57
|
+
],
|
|
58
|
+
"action": "None, unless a screen must keep the previous field outline: set `--border-field: var(--neutral-500)` on `:root` and `--border-field: var(--neutral-400)` on `:root[data-theme='dark']`.",
|
|
59
|
+
"appliesWhen": "Both themes: `--border-field` moved from `--neutral-500` (`#6B7388`) to `color-mix(in srgb, var(--neutral-500) 86%, var(--neutral-400))` (`#727A8E` on the default neutrals) in the light theme, and from `--neutral-400` (`#6B7388`) to `color-mix(in srgb, var(--neutral-500) 80%, var(--neutral-400))` (`#848DA0`) under `data-theme=\"dark\"`. Every field outline and every control boundary that reads `--border-field` follows it, among them `ds-input`, `ds-otp-input`, `ds-search` and the legend checkboxes of `ds-line-chart`. `--border-field-hover` is unchanged in both themes.",
|
|
60
|
+
"pitfall": "A border of your own hard-coded to `--neutral-500` in the light theme or `--neutral-400` in the dark theme to match the library fields no longer matches them: under `data-theme=\"dark\"` it reads fainter than the library fields beside it.",
|
|
61
|
+
"restore": ":root { --border-field: var(--neutral-500); } :root[data-theme='dark'] { --border-field: var(--neutral-400); }",
|
|
62
|
+
"verify": "On the default neutrals a resting `ds-input` border computes to `#727A8E` in the light theme and `#848DA0` under `data-theme=\"dark\"`, and on hover to `--border-field-hover`.",
|
|
63
|
+
"evidence": [
|
|
64
|
+
"tokens:--border-field"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "control-boundary-border-field",
|
|
69
|
+
"kind": "behavior",
|
|
70
|
+
"old": "--ds-checkbox-border-color",
|
|
71
|
+
"new": null,
|
|
72
|
+
"surface": [
|
|
73
|
+
"style"
|
|
74
|
+
],
|
|
75
|
+
"searchHints": [
|
|
76
|
+
"--ds-checkbox-border-color",
|
|
77
|
+
"--ds-radio-border-color",
|
|
78
|
+
"--ds-switch-track-off-bg-color",
|
|
79
|
+
"--ds-toggle-button-border-color",
|
|
80
|
+
"--border-strong",
|
|
81
|
+
"--border-default"
|
|
82
|
+
],
|
|
83
|
+
"action": "None, unless a screen must keep the faint control outline: set `--ds-checkbox-border-color: var(--border-strong)`, `--ds-radio-border-color: var(--border-strong)`, `--ds-switch-track-off-bg-color: var(--border-strong)` and `--ds-toggle-button-border-color: var(--border-default)` where you need it. A control of your own drawn to match takes `--border-field` for its outline and `--border-field-hover` for its hover outline.",
|
|
84
|
+
"appliesWhen": "Defaults that moved to `--border-field`: `--ds-checkbox-border-color` (from `--border-strong`), the unchecked box in `ds-checkbox`, in the option rows of `ds-multi-select` and `ds-autocomplete`, in `ds-table` selection, in `ds-table-columns-panel` and in `ds-chart-legend`; `--ds-radio-border-color` (from `--border-strong`); `--ds-switch-track-off-bg-color` (from `--border-strong`), the fill of an off `ds-switch` track; `--ds-toggle-button-border-color` (from `--border-default`), which also takes `--border-field-hover` on hover. The dividers beside the `ds-number-stepper` buttons follow `--ds-number-stepper-border-color` instead of `--border-default`, and `--border-disabled` when disabled. A value set on any of these hooks still wins. Checked, selected, hover-accent, error and warning colours are unchanged.",
|
|
85
|
+
"pitfall": "A checkbox, radio or toggle of your own styled with `--border-strong` or `--border-default` to look like a library control now reads fainter than the library controls beside it.",
|
|
86
|
+
"restore": ":root { --ds-checkbox-border-color: var(--border-strong); --ds-radio-border-color: var(--border-strong); --ds-switch-track-off-bg-color: var(--border-strong); --ds-toggle-button-border-color: var(--border-default); }",
|
|
87
|
+
"verify": "An unchecked `ds-checkbox` box border, an unselected `ds-radio` ring, an off `ds-switch` track and a resting `ds-toggle-button` border each compute to `--border-field`, unless their hook is set.",
|
|
88
|
+
"evidence": [
|
|
89
|
+
"tokens:--border-field"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "segmented-selected-accent-fill",
|
|
94
|
+
"kind": "behavior",
|
|
95
|
+
"old": "--ds-segmented-selected-bg-color",
|
|
96
|
+
"new": null,
|
|
97
|
+
"surface": [
|
|
98
|
+
"style"
|
|
99
|
+
],
|
|
100
|
+
"searchHints": [
|
|
101
|
+
"ds-segmented",
|
|
102
|
+
"--ds-segmented-selected-bg-color",
|
|
103
|
+
"--ds-segmented-selected-label-color",
|
|
104
|
+
"--ds-segmented-selected-shadow"
|
|
105
|
+
],
|
|
106
|
+
"action": "None, unless a screen must keep the white selected chip: set `--ds-segmented-selected-bg-color: var(--surface-default)` and `--ds-segmented-selected-label-color: var(--text-primary)` on `ds-segmented`. A label colour of your own set through `--ds-segmented-selected-label-color` must read on the new fill, or be removed.",
|
|
107
|
+
"appliesWhen": "`ds-segmented`, both the padded track and `joined`: the selected segment fills with `--segmented-selected` (`--accent` in light, `--accent-strong-overlay` under `data-theme=\"dark\"`) and its label takes `--segmented-selected-on` (`--accent-on` in light, `--surface-default` on dark), at least 3:1 against the track. Defaults that moved: `--ds-segmented-selected-bg-color` from `--surface-default`, `--ds-segmented-selected-label-color` from `--text-primary`. The track, unselected segments, `--ds-segmented-selected-shadow` and `--ds-segmented-segment-border` are unchanged; a `joined` row keeps the borders that hook draws. A `ds-color` zone does not recolour the new fill.",
|
|
108
|
+
"pitfall": "Setting only `--ds-segmented-selected-bg-color` back to a light fill leaves the label in `--segmented-selected-on`, white in the light theme, so the selected label disappears.",
|
|
109
|
+
"restore": "ds-segmented { --ds-segmented-selected-bg-color: var(--surface-default); --ds-segmented-selected-label-color: var(--text-primary); }",
|
|
110
|
+
"verify": "The selected segment of a `ds-segmented` computes its background to `--segmented-selected` and its label to `--segmented-selected-on`, unless those hooks are set; no border is drawn on the track or on a padded segment.",
|
|
111
|
+
"evidence": [
|
|
112
|
+
"tokens:--segmented-selected"
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"informational": [
|
|
117
|
+
{
|
|
118
|
+
"text": "Under `[data-density=\"compact\"]` and `[data-density=\"ultra-compact\"]` a `ds-tree` row takes `--tree-row-pad-y: var(--space-1)` and `--tree-row-pad-x: var(--space-2)` (was `--space-1-5` and `--space-3`) and each level indents `--tree-indent: var(--space-4)` (was `--space-5`). `ds-popover` pads with the new token `--popover-pad`, `--space-3`, and `--space-2` under `ultra-compact`; its panel takes the tier of the nearest `[data-density]` around the host. `--ds-tree-row-padding-y`, `--ds-tree-row-padding-x`, `--ds-tree-indent` and `--ds-popover-padding` still win where set. Nothing to change in your code.",
|
|
119
|
+
"verify": "On a screen under `[data-density=\"compact\"]`, a `ds-tree` row is 4px by 8px padded and a child level indents 16px; under `ultra-compact`, a `ds-popover` opened there pads 8px. Without `[data-density]` both measure as before."
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"text": "The `ds-textarea` resize grip and its scrollbar reach the frame's right edge: the side padding sits on the text rather than on the `.control` frame, at the same widths. A rule of your own that sets padding on `ds-textarea .control` now pads around the grip as well. Nothing else to change in your code.",
|
|
123
|
+
"verify": "Drag the resize grip of a `ds-textarea`: it sits in the frame's bottom-right corner, and the text keeps its inset from both edges."
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"text": "`ds-chat-input` takes `busyAction` (`ChatInputBusyAction`, default `'stop'`) and emits `queued` and `redirected`, and adds the optional `DsIntl.chatInput` keys `queue` and `redirect`. The busy Stop state of its main button now shows its name in a tooltip. Nothing to change in your code.",
|
|
127
|
+
"verify": "Hover the Stop button of a busy `stoppable` `ds-chat-input`: the tooltip reads its Stop label."
|
|
128
|
+
},
|
|
129
|
+
"`ds-tree` takes `toggleOn` (`TreeToggleOn`, default `'row'`, today's behaviour) and adds the optional `DsIntl.tree` keys `expand` and `collapse`. Nothing to change in your code.",
|
|
130
|
+
"`ds-empty-state` takes `appearance` (`EmptyStateAppearance`, default `'tile'`, today's look). Only under `appearance=\"plain\"` do the defaults of `--ds-empty-state-body-text-color` (`var(--text-secondary)` → `var(--text-tertiary)`), `--ds-empty-state-title-font-weight` (`var(--font-weight-bold)` → `var(--font-weight-semibold)`) and `--ds-empty-state-title-font-size` (`var(--font-size-h5)` → `var(--font-size-l)`) move; a tile keeps them, and setting the hook restores either. Nothing to change in your code.",
|
|
131
|
+
"`ds-icon` draws seven new `IconName` values: `square-dashed`, `outline-blocks`, `map-pin`, `send`, `list-plus`, `maximize` and `minimize`. Nothing to change in your code.",
|
|
132
|
+
"`ds-banner` breaks a long unbroken word in its title and message at the banner width instead of running under the actions. Remove an `overflow-wrap` workaround on the projected text if you added one; nothing else to change."
|
|
133
|
+
],
|
|
134
|
+
"deleteList": []
|
|
135
|
+
}
|
package/migrations/README.md
CHANGED
|
@@ -140,7 +140,9 @@ An `.html` fixture is not compiled.
|
|
|
140
140
|
|
|
141
141
|
**Locator fixtures.** `migrations/fixtures/<version>/<id>.found.<ext>` holds consumer code an item
|
|
142
142
|
must locate, and `<id>.ignored.<ext>` a look-alike it must not count (the same attribute on another
|
|
143
|
-
element), `ext` being `html`, `ts` or `scss`.
|
|
143
|
+
element), `ext` being `html`, `ts` or `scss`. The one exception is an item about the upgrade itself
|
|
144
|
+
(`surface: ["none"]`): its fixtures are `<id>.settings.found.json` and `<id>.settings.ignored.json`,
|
|
145
|
+
a consumer's `.claude/settings.json`. They are searched the way the usage finder searches: a
|
|
144
146
|
literal grep for `old` (the attribute of an `element[attr]`), every `searchHints` entry and every
|
|
145
147
|
`detect` shape, where a hit from `old` or a hint counts only inside the element `old` names, and a
|
|
146
148
|
`detect` hit is scoped the same way only on a template-only item. A `.found` snippet nothing locates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ids-group-ltd/ids-design-system",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "IDS Group Angular design system: components, tokens, themes",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://ids-ds.proto.ids-group.co.uk/",
|
|
@@ -780,6 +780,9 @@
|
|
|
780
780
|
"default": "./fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs"
|
|
781
781
|
}
|
|
782
782
|
},
|
|
783
|
+
"bin": {
|
|
784
|
+
"ids-design-system-token-report": "./stylelint/report.mjs"
|
|
785
|
+
},
|
|
783
786
|
"peerDependencies": {
|
|
784
787
|
"@angular/cdk": "^21.2.0",
|
|
785
788
|
"@angular/common": "^21.2.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.1.
|
|
2
|
+
"version": "1.1.2",
|
|
3
3
|
"tokens": [
|
|
4
4
|
"--ds-accordion-body-padding",
|
|
5
5
|
"--ds-accordion-body-text-color",
|
|
@@ -1551,6 +1551,7 @@
|
|
|
1551
1551
|
"layout-send-outside",
|
|
1552
1552
|
"layout-split",
|
|
1553
1553
|
"layout-toolbar",
|
|
1554
|
+
"queue",
|
|
1554
1555
|
"send",
|
|
1555
1556
|
"send-button",
|
|
1556
1557
|
"status",
|
|
@@ -1717,8 +1718,10 @@
|
|
|
1717
1718
|
"cta",
|
|
1718
1719
|
"empty-state",
|
|
1719
1720
|
"error",
|
|
1721
|
+
"icon",
|
|
1720
1722
|
"icon-tile",
|
|
1721
1723
|
"locked",
|
|
1724
|
+
"plain",
|
|
1722
1725
|
"success",
|
|
1723
1726
|
"title"
|
|
1724
1727
|
],
|
|
@@ -2646,11 +2649,17 @@
|
|
|
2646
2649
|
],
|
|
2647
2650
|
"ds-tree": [
|
|
2648
2651
|
"caret",
|
|
2652
|
+
"caret-button",
|
|
2649
2653
|
"caret-spacer",
|
|
2650
2654
|
"custom-label",
|
|
2655
|
+
"expanded",
|
|
2656
|
+
"is-animated",
|
|
2657
|
+
"is-entering",
|
|
2658
|
+
"is-leaving",
|
|
2651
2659
|
"label",
|
|
2652
2660
|
"node-icon",
|
|
2653
2661
|
"row",
|
|
2662
|
+
"row-shell",
|
|
2654
2663
|
"selected",
|
|
2655
2664
|
"trailing"
|
|
2656
2665
|
],
|
package/stylelint/index.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
// Stylelint
|
|
1
|
+
// Stylelint plugins for consumers of @ids-group-ltd/ids-design-system. The rule
|
|
2
2
|
// `ids-design-system/no-removed-tokens` reports every custom property this library removed or
|
|
3
3
|
// renamed, read from `deprecated-tokens.json` (generated from the published migration manifests),
|
|
4
|
-
// and autofixes a rename to the current name.
|
|
4
|
+
// and autofixes a rename to the current name. `use-tokens` and `known-tokens` live in their own
|
|
5
|
+
// files.
|
|
5
6
|
import { readFileSync } from 'node:fs';
|
|
6
7
|
import stylelint from 'stylelint';
|
|
7
8
|
import { VERSION, inRange } from './since-version.mjs';
|
|
@@ -91,4 +92,17 @@ rule.meta = {
|
|
|
91
92
|
fixable: true,
|
|
92
93
|
};
|
|
93
94
|
|
|
94
|
-
|
|
95
|
+
// An auto-update plugin before 1.20.1 lints from a copy of this folder that points only this file at
|
|
96
|
+
// `stylelint`, so the token rules cannot load there; that copy still runs `no-removed-tokens`.
|
|
97
|
+
const tokenRules = await Promise.all([
|
|
98
|
+
import('./use-tokens.mjs'),
|
|
99
|
+
import('./known-tokens.mjs'),
|
|
100
|
+
])
|
|
101
|
+
.then((modules) => modules.map((module) => module.default))
|
|
102
|
+
.catch((error) => {
|
|
103
|
+
if (error.code === 'ERR_MODULE_NOT_FOUND' || error.code === 'ENOENT')
|
|
104
|
+
return [];
|
|
105
|
+
throw error;
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
export default [createPlugin(ruleName, rule), ...tokenRules];
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// `ids-design-system/known-tokens`: reports a `var(--name)` whose name nothing declares, neither the
|
|
2
|
+
// design system nor the consumer's own sources. Such a read falls back or resolves to nothing, and
|
|
3
|
+
// looks exactly like a working token.
|
|
4
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
5
|
+
import { createRequire } from 'node:module';
|
|
6
|
+
import stylelint from 'stylelint';
|
|
7
|
+
import { libraryNames } from './tokens.mjs';
|
|
8
|
+
|
|
9
|
+
const fromStylelint = createRequire(import.meta.resolve('stylelint'));
|
|
10
|
+
const fastGlob = fromStylelint('fast-glob');
|
|
11
|
+
|
|
12
|
+
const {
|
|
13
|
+
createPlugin,
|
|
14
|
+
utils: { report, ruleMessages, validateOptions },
|
|
15
|
+
} = stylelint;
|
|
16
|
+
|
|
17
|
+
export const ruleName = 'ids-design-system/known-tokens';
|
|
18
|
+
|
|
19
|
+
const deprecated = new Set(
|
|
20
|
+
JSON.parse(
|
|
21
|
+
readFileSync(new URL('./deprecated-tokens.json', import.meta.url), 'utf8'),
|
|
22
|
+
).map((entry) => entry.name),
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
const messages = ruleMessages(ruleName, {
|
|
26
|
+
unknown: (name, closest) =>
|
|
27
|
+
`"${name}" is declared neither by the design system nor in this project${closest ? `, did you mean "${closest}"?` : ''}`,
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const NAME = /(?<![\w-])--[a-zA-Z][\w-]*/g;
|
|
31
|
+
const READ = /var\(\s*(--[a-zA-Z][\w-]*)/g;
|
|
32
|
+
|
|
33
|
+
// Any name in a scanned file that is not a `var()` read counts as declared there: a stylesheet
|
|
34
|
+
// declaration, `[style.--x]` in a template, `setProperty('--x', …)` in TypeScript.
|
|
35
|
+
const scanned = new Map();
|
|
36
|
+
const declaredIn = (globs) => {
|
|
37
|
+
const key = JSON.stringify(globs);
|
|
38
|
+
if (!scanned.has(key)) {
|
|
39
|
+
const names = new Set();
|
|
40
|
+
const paths = globs.filter((entry) => existsSync(entry));
|
|
41
|
+
const patterns = globs.filter((entry) => !existsSync(entry));
|
|
42
|
+
for (const file of [
|
|
43
|
+
...paths,
|
|
44
|
+
...fastGlob.sync(patterns, {
|
|
45
|
+
ignore: ['**/node_modules/**', '**/dist/**', '**/.angular/**'],
|
|
46
|
+
absolute: true,
|
|
47
|
+
}),
|
|
48
|
+
]) {
|
|
49
|
+
const text = readFileSync(file, 'utf8');
|
|
50
|
+
for (const match of text.matchAll(NAME)) {
|
|
51
|
+
const before = text.slice(Math.max(0, match.index - 8), match.index);
|
|
52
|
+
if (!/var\(\s*$/.test(before)) names.add(match[0]);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
scanned.set(key, names);
|
|
56
|
+
}
|
|
57
|
+
return scanned.get(key);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
// Only a size name one letter longer or shorter is offered (`--radius-s` is `--radius-sm`,
|
|
61
|
+
// `--font-size-sm` is `--font-size-s`): any other edit inside a scale points at the wrong step, as
|
|
62
|
+
// `--font-size-xl` at `--font-size-xs`.
|
|
63
|
+
const closestLibraryName = (name) =>
|
|
64
|
+
[...libraryNames].find(
|
|
65
|
+
(candidate) =>
|
|
66
|
+
(candidate.startsWith(name) &&
|
|
67
|
+
/^[a-z]$/.test(candidate.slice(name.length))) ||
|
|
68
|
+
(name.startsWith(candidate) &&
|
|
69
|
+
/^[a-z]$/.test(name.slice(candidate.length))),
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
const rule =
|
|
73
|
+
(primary, secondary = {}) =>
|
|
74
|
+
(root, result) => {
|
|
75
|
+
if (
|
|
76
|
+
!validateOptions(
|
|
77
|
+
result,
|
|
78
|
+
ruleName,
|
|
79
|
+
{ actual: primary },
|
|
80
|
+
{
|
|
81
|
+
actual: secondary,
|
|
82
|
+
possible: {
|
|
83
|
+
declarationsFrom: [(value) => typeof value === 'string'],
|
|
84
|
+
ignore: [(value) => typeof value === 'string'],
|
|
85
|
+
},
|
|
86
|
+
optional: true,
|
|
87
|
+
},
|
|
88
|
+
)
|
|
89
|
+
)
|
|
90
|
+
return;
|
|
91
|
+
|
|
92
|
+
const fromProject = secondary.declarationsFrom?.length
|
|
93
|
+
? declaredIn(secondary.declarationsFrom)
|
|
94
|
+
: new Set();
|
|
95
|
+
const ignored = (secondary.ignore ?? []).map((pattern) =>
|
|
96
|
+
pattern.startsWith('/') && pattern.endsWith('/')
|
|
97
|
+
? new RegExp(pattern.slice(1, -1))
|
|
98
|
+
: new RegExp(
|
|
99
|
+
`^${pattern.replace(/[.*+?^${}()|[\]\\]/g, '\\$&').replace(/\\\*/g, '.*')}$`,
|
|
100
|
+
),
|
|
101
|
+
);
|
|
102
|
+
const local = new Set();
|
|
103
|
+
root.walkDecls((declaration) => {
|
|
104
|
+
if (declaration.prop.startsWith('--')) local.add(declaration.prop);
|
|
105
|
+
});
|
|
106
|
+
const known = (name) =>
|
|
107
|
+
libraryNames.has(name) ||
|
|
108
|
+
local.has(name) ||
|
|
109
|
+
fromProject.has(name) ||
|
|
110
|
+
deprecated.has(name) ||
|
|
111
|
+
ignored.some((pattern) => pattern.test(name));
|
|
112
|
+
|
|
113
|
+
root.walkDecls((declaration) => {
|
|
114
|
+
if (declaration.value.includes('#{')) return;
|
|
115
|
+
const valueIndex =
|
|
116
|
+
declaration.prop.length + (declaration.raws.between ?? ':').length;
|
|
117
|
+
for (const match of declaration.value.matchAll(READ)) {
|
|
118
|
+
const name = match[1];
|
|
119
|
+
if (known(name)) continue;
|
|
120
|
+
const index = valueIndex + match.index + match[0].indexOf(name);
|
|
121
|
+
report({
|
|
122
|
+
ruleName,
|
|
123
|
+
result,
|
|
124
|
+
node: declaration,
|
|
125
|
+
index,
|
|
126
|
+
endIndex: index + name.length,
|
|
127
|
+
message: messages.unknown(name, closestLibraryName(name)),
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
rule.ruleName = ruleName;
|
|
134
|
+
rule.messages = messages;
|
|
135
|
+
rule.meta = {
|
|
136
|
+
url: 'https://www.npmjs.com/package/@ids-group-ltd/ids-design-system',
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
export default createPlugin(ruleName, rule);
|