blockforce-design-system 2.0.2 → 2.0.4
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/MIGRATION.md +23 -19
- package/README.md +6 -2
- package/lib/ai/components.json +6531 -0
- package/lib/ai/icons.txt +5999 -0
- package/lib/ai/tokens.md +231 -0
- package/lib/commonjs/components/data-display/calendar/calendar.styles.js +14 -13
- package/lib/commonjs/components/data-display/calendar/calendar.styles.js.map +1 -1
- package/lib/commonjs/components/data-display/matrix/matrix.styles.js +22 -21
- package/lib/commonjs/components/data-display/matrix/matrix.styles.js.map +1 -1
- package/lib/commonjs/components/data-display/side-panel/side-panel.styles.js +11 -10
- package/lib/commonjs/components/data-display/side-panel/side-panel.styles.js.map +1 -1
- package/lib/commonjs/components/forms/autocomplete/autocomplete.styles.js +8 -21
- package/lib/commonjs/components/forms/autocomplete/autocomplete.styles.js.map +1 -1
- package/lib/commonjs/components/forms/file/file-image-preview/file-image-preview.comp.js.map +1 -1
- package/lib/commonjs/components/forms/file/file-image-preview-list/file-image-preview-list.comp.js.map +1 -1
- package/lib/commonjs/components/forms/file/file-preview-list/file-preview-list.comp.js.map +1 -1
- package/lib/commonjs/components/icons/icon/icon.comp.js.map +1 -1
- package/lib/commonjs/components/layout/drawer/drawer.styles.js +7 -5
- package/lib/commonjs/components/layout/drawer/drawer.styles.js.map +1 -1
- package/lib/commonjs/components/layout/modal/modal.styles.js +7 -18
- package/lib/commonjs/components/layout/modal/modal.styles.js.map +1 -1
- package/lib/commonjs/components/layout/popover/popover.styles.js +3 -2
- package/lib/commonjs/components/layout/popover/popover.styles.js.map +1 -1
- package/lib/commonjs/components/layout/slider/slider.styles.js +5 -26
- package/lib/commonjs/components/layout/slider/slider.styles.js.map +1 -1
- package/lib/commonjs/components/layout/table/table.comp.js +1 -1
- package/lib/commonjs/components/layout/table/table.comp.js.map +1 -1
- package/lib/commonjs/components/layout/table/table.styles.js +18 -17
- package/lib/commonjs/components/layout/table/table.styles.js.map +1 -1
- package/lib/commonjs/components/layout/table-head/table-head.comp.js +1 -1
- package/lib/commonjs/components/layout/table-head/table-head.comp.js.map +1 -1
- package/lib/commonjs/components/layout/table-head/table-head.styles.js +1 -1
- package/lib/commonjs/components/layout/table-head/table-head.styles.js.map +1 -1
- package/lib/commonjs/components/layout/table-row/table-row.comp.js +1 -1
- package/lib/commonjs/components/layout/table-row/table-row.comp.js.map +1 -1
- package/lib/commonjs/components/navigation/navigation-card/navigation-card.comp.js +2 -0
- package/lib/commonjs/components/navigation/navigation-card/navigation-card.comp.js.map +1 -0
- package/lib/commonjs/components/navigation/navigation-card/navigation-card.styles.js +47 -0
- package/lib/commonjs/components/navigation/navigation-card/navigation-card.styles.js.map +1 -0
- package/lib/commonjs/components/navigation/navigation-card/navigation-cards.comp.js +2 -0
- package/lib/commonjs/components/navigation/navigation-card/navigation-cards.comp.js.map +1 -0
- package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.comp.js +2 -0
- package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.comp.js.map +1 -0
- package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.styles.js +91 -0
- package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.styles.js.map +1 -0
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/theme/scrollbar.js +39 -0
- package/lib/commonjs/theme/scrollbar.js.map +1 -0
- package/lib/index.d.ts +134 -2
- package/lib/module/components/data-display/calendar/calendar.styles.js +17 -16
- package/lib/module/components/data-display/calendar/calendar.styles.js.map +1 -1
- package/lib/module/components/data-display/matrix/matrix.styles.js +20 -19
- package/lib/module/components/data-display/matrix/matrix.styles.js.map +1 -1
- package/lib/module/components/data-display/side-panel/side-panel.styles.js +10 -9
- package/lib/module/components/data-display/side-panel/side-panel.styles.js.map +1 -1
- package/lib/module/components/forms/autocomplete/autocomplete.styles.js +8 -21
- package/lib/module/components/forms/autocomplete/autocomplete.styles.js.map +1 -1
- package/lib/module/components/forms/file/file-image-preview/file-image-preview.comp.js.map +1 -1
- package/lib/module/components/forms/file/file-image-preview-list/file-image-preview-list.comp.js.map +1 -1
- package/lib/module/components/forms/file/file-preview-list/file-preview-list.comp.js.map +1 -1
- package/lib/module/components/icons/icon/icon.comp.js.map +1 -1
- package/lib/module/components/layout/drawer/drawer.styles.js +7 -5
- package/lib/module/components/layout/drawer/drawer.styles.js.map +1 -1
- package/lib/module/components/layout/modal/modal.styles.js +7 -18
- package/lib/module/components/layout/modal/modal.styles.js.map +1 -1
- package/lib/module/components/layout/popover/popover.styles.js +2 -1
- package/lib/module/components/layout/popover/popover.styles.js.map +1 -1
- package/lib/module/components/layout/slider/slider.styles.js +5 -26
- package/lib/module/components/layout/slider/slider.styles.js.map +1 -1
- package/lib/module/components/layout/table/table.comp.js +1 -1
- package/lib/module/components/layout/table/table.comp.js.map +1 -1
- package/lib/module/components/layout/table/table.styles.js +9 -8
- package/lib/module/components/layout/table/table.styles.js.map +1 -1
- package/lib/module/components/layout/table-head/table-head.comp.js +1 -1
- package/lib/module/components/layout/table-head/table-head.comp.js.map +1 -1
- package/lib/module/components/layout/table-head/table-head.styles.js +1 -1
- package/lib/module/components/layout/table-head/table-head.styles.js.map +1 -1
- package/lib/module/components/layout/table-row/table-row.comp.js +1 -1
- package/lib/module/components/layout/table-row/table-row.comp.js.map +1 -1
- package/lib/module/components/navigation/navigation-card/navigation-card.comp.js +2 -0
- package/lib/module/components/navigation/navigation-card/navigation-card.comp.js.map +1 -0
- package/lib/module/components/navigation/navigation-card/navigation-card.styles.js +47 -0
- package/lib/module/components/navigation/navigation-card/navigation-card.styles.js.map +1 -0
- package/lib/module/components/navigation/navigation-card/navigation-cards.comp.js +2 -0
- package/lib/module/components/navigation/navigation-card/navigation-cards.comp.js.map +1 -0
- package/lib/module/components/navigation/navigation-sections/navigation-sections.comp.js +2 -0
- package/lib/module/components/navigation/navigation-sections/navigation-sections.comp.js.map +1 -0
- package/lib/module/components/navigation/navigation-sections/navigation-sections.styles.js +91 -0
- package/lib/module/components/navigation/navigation-sections/navigation-sections.styles.js.map +1 -0
- package/lib/module/index.js +1 -1
- package/lib/module/theme/scrollbar.js +39 -0
- package/lib/module/theme/scrollbar.js.map +1 -0
- package/llms-full.txt +2282 -0
- package/llms.txt +162 -0
- package/package.json +18 -11
package/lib/index.d.ts
CHANGED
|
@@ -593,6 +593,23 @@ declare const media: {
|
|
|
593
593
|
between: (from: Breakpoint, to: Breakpoint) => string;
|
|
594
594
|
};
|
|
595
595
|
|
|
596
|
+
/**
|
|
597
|
+
* Barra de rolagem fina, a mesma em toda área que rola (regra de ouro 12): 4px, polegar
|
|
598
|
+
* `grey_4` (`grey_3` no hover), trilho transparente e raio `full`. Use dentro do styled de
|
|
599
|
+
* qualquer contêiner com `overflow: auto`, em vez de escrever `::-webkit-scrollbar`.
|
|
600
|
+
* @example
|
|
601
|
+
* const List = styled.ul`
|
|
602
|
+
* overflow-y: auto;
|
|
603
|
+
* ${thinScrollbar}
|
|
604
|
+
* `
|
|
605
|
+
*/
|
|
606
|
+
declare const thinScrollbar: styled_components.RuleSet<object>;
|
|
607
|
+
/**
|
|
608
|
+
* Barra fina que só aparece com o mouse em cima, para faixas que rolam de lado (ex. Carousel).
|
|
609
|
+
* No celular, sem hover, a rolagem continua pelo toque.
|
|
610
|
+
*/
|
|
611
|
+
declare const thinScrollbarOnHover: styled_components.RuleSet<object>;
|
|
612
|
+
|
|
596
613
|
interface ThemeProviderProps {
|
|
597
614
|
children: React.ReactNode;
|
|
598
615
|
theme: ThemeProps;
|
|
@@ -1940,6 +1957,12 @@ declare const ConfirmDialogProvider: ({ children, }: {
|
|
|
1940
1957
|
*/
|
|
1941
1958
|
declare const useConfirm: () => Confirm;
|
|
1942
1959
|
|
|
1960
|
+
/**
|
|
1961
|
+
* Ícone da biblioteca do DS pelo nome: ícones próprios da Blockforce, Remix e Lucide (`lu:nome`).
|
|
1962
|
+
* `color` usa as cores do tema e `gradient` pinta com o gradiente da marca. A lista de nomes está em `lib/ai/icons.txt`.
|
|
1963
|
+
* Para ícone clicável use IconButton; para ícone dentro de uma caixinha use IconBox.
|
|
1964
|
+
* @example <Icon name="leaf" size={20} color="primary" />
|
|
1965
|
+
*/
|
|
1943
1966
|
declare const Icon: ({ color, name, size, fill: fillProp, defs: defsProp, gradient, ...props }: IconProps) => react_jsx_runtime.JSX.Element | null;
|
|
1944
1967
|
|
|
1945
1968
|
declare const parseIconNameToRemixIcon: (name: string) => RiIconName;
|
|
@@ -2334,6 +2357,11 @@ interface FileImagePreviewProps {
|
|
|
2334
2357
|
onClickInput?: () => void;
|
|
2335
2358
|
}
|
|
2336
2359
|
|
|
2360
|
+
/**
|
|
2361
|
+
* Miniatura de uma imagem enviada (arquivo ou URL), com ações de trocar e excluir.
|
|
2362
|
+
* Arquivo que não é imagem aparece como ícone. Normalmente vem pronto dentro do FileDropzone (`preview="image"`).
|
|
2363
|
+
* @example <FileImagePreview file={foto} onDelete={remover} />
|
|
2364
|
+
*/
|
|
2337
2365
|
declare const FileImagePreview: ({ file, onChange, onDelete, onClickInput, ...rest }: FileImagePreviewProps) => react_jsx_runtime.JSX.Element;
|
|
2338
2366
|
|
|
2339
2367
|
/** Props for the FilePreviewList component */
|
|
@@ -2352,6 +2380,11 @@ interface FilePreviewListProps {
|
|
|
2352
2380
|
onDeleteDefaultFile?: (index: number) => void;
|
|
2353
2381
|
}
|
|
2354
2382
|
|
|
2383
|
+
/**
|
|
2384
|
+
* Lista dos arquivos enviados, com nome, ícone do tipo e excluir. `defaultFiles` mostra arquivos que já estavam salvos (URLs).
|
|
2385
|
+
* Normalmente vem pronta dentro do FileDropzone com `multiple` e `preview="list"`.
|
|
2386
|
+
* @example <FilePreviewList files={arquivos} setFiles={setArquivos} />
|
|
2387
|
+
*/
|
|
2355
2388
|
declare const FilePreviewList: ({ files, showImages, setFiles, onDelete, defaultFiles, onDeleteDefaultFile, ...rest }: FilePreviewListProps) => react_jsx_runtime.JSX.Element;
|
|
2356
2389
|
|
|
2357
2390
|
/** Props for the FileImagePreviewList component */
|
|
@@ -2368,6 +2401,11 @@ interface FileImagePreviewListProps {
|
|
|
2368
2401
|
onDeleteDefaultFile?: (index: number) => void;
|
|
2369
2402
|
}
|
|
2370
2403
|
|
|
2404
|
+
/**
|
|
2405
|
+
* Grade de miniaturas das imagens enviadas, com excluir em cada uma. `defaultFiles` mostra imagens que já estavam salvas (URLs).
|
|
2406
|
+
* Normalmente vem pronta dentro do FileDropzone com `multiple` e `preview="image"`.
|
|
2407
|
+
* @example <FileImagePreviewList files={fotos} setFiles={setFotos} />
|
|
2408
|
+
*/
|
|
2371
2409
|
declare const FileImagePreviewList: ({ files, setFiles, onDelete, defaultFiles, onDeleteDefaultFile, ...rest }: FileImagePreviewListProps) => react_jsx_runtime.JSX.Element;
|
|
2372
2410
|
|
|
2373
2411
|
/** Props for the Accordion component */
|
|
@@ -3537,6 +3575,100 @@ interface ViewToggleProps<V extends string = string> {
|
|
|
3537
3575
|
*/
|
|
3538
3576
|
declare const ViewToggle: <V extends string = string>({ options, value, onChange, "aria-label": ariaLabel, size, fullWidth, }: ViewToggleProps<V>) => react_jsx_runtime.JSX.Element;
|
|
3539
3577
|
|
|
3578
|
+
/** Props for the NavigationCard component */
|
|
3579
|
+
interface NavigationCardProps {
|
|
3580
|
+
/** Ícone do atalho, em gradiente dentro de um círculo. */
|
|
3581
|
+
icon: IconsName;
|
|
3582
|
+
/** Nome da tela para onde o atalho leva (ex. "Produtos"). */
|
|
3583
|
+
title: string;
|
|
3584
|
+
/** Uma frase sobre o que a pessoa encontra lá. */
|
|
3585
|
+
description: string;
|
|
3586
|
+
/** Chamado ao clicar ou apertar Enter/Espaço. Sem ele, o card é só ilustração e não recebe foco. */
|
|
3587
|
+
onClick?: () => void;
|
|
3588
|
+
/** `data-testid` do card, para testes. @default 'navigation-card' */
|
|
3589
|
+
'data-testid'?: string;
|
|
3590
|
+
}
|
|
3591
|
+
/** Um atalho da lista do NavigationCards. */
|
|
3592
|
+
interface NavigationCardsItem extends NavigationCardProps {
|
|
3593
|
+
/** Chave única do atalho na lista. */
|
|
3594
|
+
key: string;
|
|
3595
|
+
}
|
|
3596
|
+
/** Props for the NavigationCards component */
|
|
3597
|
+
interface NavigationCardsProps {
|
|
3598
|
+
/** Atalhos, na ordem em que aparecem (até uns cinco). */
|
|
3599
|
+
items: NavigationCardsItem[];
|
|
3600
|
+
}
|
|
3601
|
+
|
|
3602
|
+
/**
|
|
3603
|
+
* Atalho para outra tela, em card: ícone no círculo, título e descrição centralizados e a seta
|
|
3604
|
+
* no canto. Use em linha, com poucos atalhos (até uns cinco), pelo NavigationCards.
|
|
3605
|
+
* Para muitos atalhos ou atalhos em grupos, use NavigationSections; para link no meio do texto, TextLink.
|
|
3606
|
+
* @example <NavigationCard icon="barcode_box" title="Produtos" description="Total de produtos cadastrados" onClick={goToProducts} />
|
|
3607
|
+
*/
|
|
3608
|
+
declare const NavigationCard: ({ icon, title, description, onClick, "data-testid": testId, }: NavigationCardProps) => react_jsx_runtime.JSX.Element;
|
|
3609
|
+
|
|
3610
|
+
/**
|
|
3611
|
+
* Linha de atalhos em card (NavigationCard) no topo de uma dashboard. Os cards dividem a
|
|
3612
|
+
* largura e descem para a linha de baixo quando não cabem (mínimo de 220px cada).
|
|
3613
|
+
* Use com poucos atalhos (até uns cinco); para muitos ou em grupos, use NavigationSections.
|
|
3614
|
+
* @example
|
|
3615
|
+
* <NavigationCards
|
|
3616
|
+
* items={[
|
|
3617
|
+
* { key: 'products', icon: 'barcode_box', title: 'Produtos', description: 'Total de produtos cadastrados' },
|
|
3618
|
+
* { key: 'orders', icon: 'checkbox_circle', title: 'Pedidos de compra', description: 'Registre e acompanhe pedidos' },
|
|
3619
|
+
* ]}
|
|
3620
|
+
* />
|
|
3621
|
+
*/
|
|
3622
|
+
declare const NavigationCards: ({ items }: NavigationCardsProps) => react_jsx_runtime.JSX.Element;
|
|
3623
|
+
|
|
3624
|
+
/** Um atalho dentro de uma seção do NavigationSections. */
|
|
3625
|
+
interface NavigationSectionItem {
|
|
3626
|
+
/** Chave única do atalho na seção. */
|
|
3627
|
+
key: string;
|
|
3628
|
+
/** Ícone do atalho, numa caixinha (IconBox). */
|
|
3629
|
+
icon: IconsName;
|
|
3630
|
+
/** Nome da tela para onde o atalho leva (ex. "Fornecedores"). */
|
|
3631
|
+
title: string;
|
|
3632
|
+
/** O que a pessoa encontra lá. Corta em duas linhas. */
|
|
3633
|
+
description: string;
|
|
3634
|
+
/** Chamado ao clicar ou apertar Enter/Espaço. Sem ele, o atalho é só ilustração e não recebe foco. */
|
|
3635
|
+
onClick?: () => void;
|
|
3636
|
+
}
|
|
3637
|
+
/** Um grupo de atalhos do NavigationSections. */
|
|
3638
|
+
interface NavigationSection {
|
|
3639
|
+
/** Chave única da seção. */
|
|
3640
|
+
key: string;
|
|
3641
|
+
/** Ícone pequeno antes do nome da seção. */
|
|
3642
|
+
icon: IconsName;
|
|
3643
|
+
/** Nome da seção (ex. "Cadastro & Configuração"). Aparece em maiúsculas. */
|
|
3644
|
+
title: string;
|
|
3645
|
+
/** Atalhos da seção, na ordem em que aparecem. */
|
|
3646
|
+
items: NavigationSectionItem[];
|
|
3647
|
+
}
|
|
3648
|
+
/** Props for the NavigationSections component */
|
|
3649
|
+
interface NavigationSectionsProps {
|
|
3650
|
+
/** Seções, de cima para baixo. Seção sem atalho não aparece. */
|
|
3651
|
+
sections: NavigationSection[];
|
|
3652
|
+
}
|
|
3653
|
+
|
|
3654
|
+
/**
|
|
3655
|
+
* Painel de atalhos agrupados em seções, para o topo de módulos com muitas telas (Compliance,
|
|
3656
|
+
* Relatórios). Cada atalho é uma linha com ícone em caixa, título, descrição de até duas
|
|
3657
|
+
* linhas e seta. Para poucos atalhos soltos (até uns cinco), use NavigationCards.
|
|
3658
|
+
* @example
|
|
3659
|
+
* <NavigationSections
|
|
3660
|
+
* sections={[
|
|
3661
|
+
* {
|
|
3662
|
+
* key: 'register',
|
|
3663
|
+
* icon: 'file_list',
|
|
3664
|
+
* title: 'Cadastro & Configuração',
|
|
3665
|
+
* items: [{ key: 'providers', icon: 'user_community', title: 'Fornecedores', description: 'Gerencie e monitore seus fornecedores', onClick: goToProviders }],
|
|
3666
|
+
* },
|
|
3667
|
+
* ]}
|
|
3668
|
+
* />
|
|
3669
|
+
*/
|
|
3670
|
+
declare const NavigationSections: ({ sections }: NavigationSectionsProps) => react_jsx_runtime.JSX.Element;
|
|
3671
|
+
|
|
3540
3672
|
/** Props for the Text component — the main typography primitive */
|
|
3541
3673
|
interface TextProps {
|
|
3542
3674
|
/** Text content or child elements */
|
|
@@ -3612,6 +3744,6 @@ declare const useIsTablet: (options?: ScreenHookOptions) => boolean;
|
|
|
3612
3744
|
* Lê a tela já no primeiro render. Em Next, passe `{ ssr: true }`: o primeiro render devolve `xl`
|
|
3613
3745
|
* (igual ao servidor) e logo depois de montar reflete a tela.
|
|
3614
3746
|
*/
|
|
3615
|
-
declare const useBreakpoint: ({ ssr }?: ScreenHookOptions) => Breakpoint |
|
|
3747
|
+
declare const useBreakpoint: ({ ssr }?: ScreenHookOptions) => Breakpoint | "base";
|
|
3616
3748
|
|
|
3617
|
-
export { Accordion, type AccordionProps, ActionMenu, type ActionMenuItem, type ActionMenuProps, Alert, type AlertProps, type AlertStatus, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, type AvatarProps, BarChart, type BarChartData, type BarChartProps, Box, type BoxProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type Breakpoint, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CHART_COLOR_ORDER, CHART_OTHER_COLOR, type CSSCursor, Calendar, type CalendarEvent, type CalendarLabels, type CalendarLegendItem, type CalendarProps, CanvasButton, type CanvasButtonProps, CanvasPanel, type CanvasPanelProps, Card, type CardProps, type CardVariant, Carousel, type CarouselProps, type CellAlign, type ChartColorName, ChartLegend, type ChartLegendItem, type ChartLegendProps, CheckBox, type CheckBoxProps, Checkbox, type CheckboxAlign, type CheckboxProps, type ClientFont, type ClientThemeIssue, type ClientThemeOptions, ConfirmDialog, type ConfirmDialogProps, ConfirmDialogProvider, type ConfirmDialogReason, type ConfirmOptions, CustomAutocomplete, CustomBox, CustomCheckBox, type CustomIconName, type CustomIconProps, CustomInput, CustomSwitch, CustomTextArea, DEFAULT_DATE_LABELS, DatePicker, type DatePickerLabels, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DeepPartial, DirectionToggle, type DirectionToggleProps, Divider, type DividerProps, DoughnutChart, type DoughnutChartProps, DragNDrop, type DragNDropProps, Drawer, type DrawerAnchor, type DrawerProps, EmptyState, type EmptyStateProps, type ExternalIconName, FileDropzone, type FileDropzoneProps, FileImagePreview, FileImagePreviewList, type FileImagePreviewListProps, type FileImagePreviewProps, FilePreview, FilePreviewList, type FilePreviewListProps, type FilePreviewProps, FullscreenToggle, type FullscreenToggleProps, GlobalStyle, Icon, IconBox, type IconBoxProps, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, type IconProps, type IconsName, Image, type ImageProps, InfoItem, type InfoItemProps, Input, type InputProps, LUCIDE_PREFIX, type LegacyButtonSize, LineChart, type LineChartData, type LineChartProps, type LineChartSeries, type LuIconName, type LucideIconName, Matrix, type MatrixAxisItem, type MatrixBand, type MatrixCell, type MatrixCellStyle, type MatrixItem, type MatrixKey, type MatrixLegendItem, type MatrixProps, Modal, type ModalProps, MonthPicker, type MonthPickerProps, Pagination, type PaginationProps, type PartsProps, Popover, type PopoverPosition, type PopoverProps, ProgressBar, type ProgressBarProps, RadioGroup, type RadioGroupProps, type RadioOption, type RiIconName, SUPPORTED_CLIENT_FONTS, type ScreenHookOptions, SearchInput, type SearchInputProps, Select, type SelectOption, type SelectProps, SelectableItem, type SelectableItemProps, SidePanel, type SidePanelProps, type SizeType, Skeleton, type SkeletonProps, Slider, type SliderProps, type SpacingName, Spinner, type SpinnerProps, StatCard, type StatCardProps, type StepState, Stepper, type StepperLabels, type StepperProps, type StepperStep, Switch, type SwitchProps, type TabItem, Table, type TableData, type TableHeader, TablePagination, type TablePaginationProps, type TableProps, Tabs, type TabsProps, type TabsVariant, Tag, type TagProps, Text, TextArea, type TextAreaProps, type TextElementTags, TextLink, type TextLinkProps, type TextProps, type Theme, type ThemeColorPath, type ThemeColors, type ThemeProps, CustomThemeProvider as ThemeProvider, Timeline, type TimelineProps, TintedSection, type TintedSectionProps, TitleCard, type TitleCardProps, Toast, type ToastApi, type ToastConfig, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, ToastStackStyles, type ToastType, type Tokens, Tooltip, type TooltipProps, type TreeDirection, TreeNode, type TreeNodeBaseProps, type TreeNodeCaptionProps, type TreeNodeProps, type TreeNodeTitleProps, TreeView, type TreeViewProps, TreemapChart, type TreemapChartData, type TreemapChartProps, Treeview, type TreeviewProps, ViewToggle, type ViewToggleOption, type ViewToggleProps, adjustColorBrightness, allIconsOptions, breakpointValues, createClientTheme, createTheme, customIconsOptions, defaultTheme, formatDateKey, getBand, getChartColors, getClientThemeIssues, getContrastRatio, getLuminance, getReadableTextColor, getThemeColor, getThemeContrastColor, getThemeSize, getThemeSpacing, initialDay, isLucideName, legacyTheme, media, mixColors, parseDateText, parseIconNameToLucide, parseIconNameToRemixIcon, tokens, useBreakpoint, useConfirm, useIsMobile, useIsTablet, useMediaQuery, useToast };
|
|
3749
|
+
export { Accordion, type AccordionProps, ActionMenu, type ActionMenuItem, type ActionMenuProps, Alert, type AlertProps, type AlertStatus, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, type AvatarProps, BarChart, type BarChartData, type BarChartProps, Box, type BoxProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type Breakpoint, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CHART_COLOR_ORDER, CHART_OTHER_COLOR, type CSSCursor, Calendar, type CalendarEvent, type CalendarLabels, type CalendarLegendItem, type CalendarProps, CanvasButton, type CanvasButtonProps, CanvasPanel, type CanvasPanelProps, Card, type CardProps, type CardVariant, Carousel, type CarouselProps, type CellAlign, type ChartColorName, ChartLegend, type ChartLegendItem, type ChartLegendProps, CheckBox, type CheckBoxProps, Checkbox, type CheckboxAlign, type CheckboxProps, type ClientFont, type ClientThemeIssue, type ClientThemeOptions, ConfirmDialog, type ConfirmDialogProps, ConfirmDialogProvider, type ConfirmDialogReason, type ConfirmOptions, CustomAutocomplete, CustomBox, CustomCheckBox, type CustomIconName, type CustomIconProps, CustomInput, CustomSwitch, CustomTextArea, DEFAULT_DATE_LABELS, DatePicker, type DatePickerLabels, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DeepPartial, DirectionToggle, type DirectionToggleProps, Divider, type DividerProps, DoughnutChart, type DoughnutChartProps, DragNDrop, type DragNDropProps, Drawer, type DrawerAnchor, type DrawerProps, EmptyState, type EmptyStateProps, type ExternalIconName, FileDropzone, type FileDropzoneProps, FileImagePreview, FileImagePreviewList, type FileImagePreviewListProps, type FileImagePreviewProps, FilePreview, FilePreviewList, type FilePreviewListProps, type FilePreviewProps, FullscreenToggle, type FullscreenToggleProps, GlobalStyle, Icon, IconBox, type IconBoxProps, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, type IconProps, type IconsName, Image, type ImageProps, InfoItem, type InfoItemProps, Input, type InputProps, LUCIDE_PREFIX, type LegacyButtonSize, LineChart, type LineChartData, type LineChartProps, type LineChartSeries, type LuIconName, type LucideIconName, Matrix, type MatrixAxisItem, type MatrixBand, type MatrixCell, type MatrixCellStyle, type MatrixItem, type MatrixKey, type MatrixLegendItem, type MatrixProps, Modal, type ModalProps, MonthPicker, type MonthPickerProps, NavigationCard, type NavigationCardProps, NavigationCards, type NavigationCardsItem, type NavigationCardsProps, type NavigationSection, type NavigationSectionItem, NavigationSections, type NavigationSectionsProps, Pagination, type PaginationProps, type PartsProps, Popover, type PopoverPosition, type PopoverProps, ProgressBar, type ProgressBarProps, RadioGroup, type RadioGroupProps, type RadioOption, type RiIconName, SUPPORTED_CLIENT_FONTS, type ScreenHookOptions, SearchInput, type SearchInputProps, Select, type SelectOption, type SelectProps, SelectableItem, type SelectableItemProps, SidePanel, type SidePanelProps, type SizeType, Skeleton, type SkeletonProps, Slider, type SliderProps, type SpacingName, Spinner, type SpinnerProps, StatCard, type StatCardProps, type StepState, Stepper, type StepperLabels, type StepperProps, type StepperStep, Switch, type SwitchProps, type TabItem, Table, type TableData, type TableHeader, TablePagination, type TablePaginationProps, type TableProps, Tabs, type TabsProps, type TabsVariant, Tag, type TagProps, Text, TextArea, type TextAreaProps, type TextElementTags, TextLink, type TextLinkProps, type TextProps, type Theme, type ThemeColorPath, type ThemeColors, type ThemeProps, CustomThemeProvider as ThemeProvider, Timeline, type TimelineProps, TintedSection, type TintedSectionProps, TitleCard, type TitleCardProps, Toast, type ToastApi, type ToastConfig, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, ToastStackStyles, type ToastType, type Tokens, Tooltip, type TooltipProps, type TreeDirection, TreeNode, type TreeNodeBaseProps, type TreeNodeCaptionProps, type TreeNodeProps, type TreeNodeTitleProps, TreeView, type TreeViewProps, TreemapChart, type TreemapChartData, type TreemapChartProps, Treeview, type TreeviewProps, ViewToggle, type ViewToggleOption, type ViewToggleProps, adjustColorBrightness, allIconsOptions, breakpointValues, createClientTheme, createTheme, customIconsOptions, defaultTheme, formatDateKey, getBand, getChartColors, getClientThemeIssues, getContrastRatio, getLuminance, getReadableTextColor, getThemeColor, getThemeContrastColor, getThemeSize, getThemeSpacing, initialDay, isLucideName, legacyTheme, media, mixColors, parseDateText, parseIconNameToLucide, parseIconNameToRemixIcon, thinScrollbar, thinScrollbarOnHover, tokens, useBreakpoint, useConfirm, useIsMobile, useIsTablet, useMediaQuery, useToast };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import{styled as e,css as t}from"styled-components";import{media as o}from"../../../theme/media.js";import{getThemeColor as i}from"../../../theme/theme.util.js";const
|
|
1
|
+
import{styled as e,css as t}from"styled-components";import{media as o}from"../../../theme/media.js";import{getThemeColor as i}from"../../../theme/theme.util.js";import{thinScrollbar as r}from"../../../theme/scrollbar.js";const a=e.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${({theme:e})=>e.spacing.md};
|
|
5
5
|
width: 100%;
|
|
6
6
|
min-width: 280px;
|
|
7
7
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
8
|
-
`,
|
|
8
|
+
`,n=e.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
justify-content: space-between;
|
|
12
12
|
gap: ${({theme:e})=>e.spacing.sm};
|
|
13
|
-
`,
|
|
13
|
+
`,p=e.span`
|
|
14
14
|
font-size: ${({theme:e})=>e.typography.textSize.body};
|
|
15
15
|
font-weight: ${({theme:e})=>e.typography.fontWeight.medium};
|
|
16
16
|
color: ${({theme:e})=>e.colors.grey_1};
|
|
17
|
-
`,
|
|
17
|
+
`,s=e.div`
|
|
18
18
|
display: grid;
|
|
19
19
|
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
20
20
|
gap: 4px;
|
|
@@ -22,7 +22,7 @@ import{styled as e,css as t}from"styled-components";import{media as o}from"../..
|
|
|
22
22
|
${o.down("md")} {
|
|
23
23
|
gap: 2px;
|
|
24
24
|
}
|
|
25
|
-
`,
|
|
25
|
+
`,m=e.abbr`
|
|
26
26
|
padding: 4px;
|
|
27
27
|
text-align: center;
|
|
28
28
|
text-decoration: none;
|
|
@@ -30,7 +30,7 @@ import{styled as e,css as t}from"styled-components";import{media as o}from"../..
|
|
|
30
30
|
font-size: ${({theme:e})=>e.typography.textSize.caption};
|
|
31
31
|
font-weight: ${({theme:e})=>e.typography.fontWeight.medium};
|
|
32
32
|
color: ${({theme:e})=>e.colors.grey_2};
|
|
33
|
-
`,
|
|
33
|
+
`,l=e.button`
|
|
34
34
|
display: flex;
|
|
35
35
|
flex-direction: column;
|
|
36
36
|
align-items: flex-start;
|
|
@@ -67,22 +67,22 @@ import{styled as e,css as t}from"styled-components";import{media as o}from"../..
|
|
|
67
67
|
min-height: 36px;
|
|
68
68
|
padding: 2px;
|
|
69
69
|
}
|
|
70
|
-
`,
|
|
70
|
+
`,h=e.span`
|
|
71
71
|
font-size: ${({theme:e})=>e.typography.textSize.caption};
|
|
72
72
|
font-weight: ${({$today:e,theme:t})=>e?t.typography.fontWeight.semibold:t.typography.fontWeight.regular};
|
|
73
73
|
color: ${({$outside:e,$today:t,theme:o})=>t?o.colors.primary:e?o.colors.grey_3:o.colors.grey_1};
|
|
74
|
-
`,
|
|
74
|
+
`,g=e.span`
|
|
75
75
|
display: flex;
|
|
76
76
|
flex-wrap: wrap;
|
|
77
77
|
align-items: center;
|
|
78
78
|
gap: 2px;
|
|
79
|
-
`,
|
|
79
|
+
`,d=e.span`
|
|
80
80
|
flex: none;
|
|
81
81
|
width: ${({$size:e})=>e??8}px;
|
|
82
82
|
height: ${({$size:e})=>e??8}px;
|
|
83
83
|
border-radius: 50%;
|
|
84
84
|
background: ${({$color:e,theme:t})=>i(e??"primary",t)};
|
|
85
|
-
`,
|
|
85
|
+
`,c=e.span`
|
|
86
86
|
flex: none;
|
|
87
87
|
padding: 0 4px;
|
|
88
88
|
border-radius: ${({theme:e})=>e.radius.full};
|
|
@@ -95,7 +95,7 @@ import{styled as e,css as t}from"styled-components";import{media as o}from"../..
|
|
|
95
95
|
&::after {
|
|
96
96
|
content: attr(data-count);
|
|
97
97
|
}
|
|
98
|
-
`,
|
|
98
|
+
`,y=e.ul`
|
|
99
99
|
display: flex;
|
|
100
100
|
flex-wrap: wrap;
|
|
101
101
|
justify-content: center;
|
|
@@ -103,28 +103,29 @@ import{styled as e,css as t}from"styled-components";import{media as o}from"../..
|
|
|
103
103
|
margin: 0;
|
|
104
104
|
padding: 0;
|
|
105
105
|
list-style: none;
|
|
106
|
-
|
|
106
|
+
`,$=e.li`
|
|
107
107
|
display: flex;
|
|
108
108
|
align-items: center;
|
|
109
109
|
gap: ${({theme:e})=>e.spacing.sm};
|
|
110
110
|
font-size: ${({theme:e})=>e.typography.textSize.bodySm};
|
|
111
111
|
color: ${({theme:e})=>e.colors.grey_2};
|
|
112
|
-
|
|
112
|
+
`,f=e.div`
|
|
113
113
|
display: flex;
|
|
114
114
|
flex-direction: column;
|
|
115
115
|
gap: ${({theme:e})=>e.spacing.sm};
|
|
116
116
|
max-height: 400px;
|
|
117
117
|
overflow-y: auto;
|
|
118
|
+
${r}
|
|
118
119
|
padding: ${({theme:e})=>e.spacing.md};
|
|
119
|
-
`,
|
|
120
|
+
`,x=e.span`
|
|
120
121
|
font-size: ${({theme:e})=>e.typography.textSize.bodySm};
|
|
121
122
|
font-weight: ${({theme:e})=>e.typography.fontWeight.semibold};
|
|
122
123
|
color: ${({theme:e})=>e.colors.grey_1};
|
|
123
|
-
`,
|
|
124
|
+
`,u=e.span`
|
|
124
125
|
display: flex;
|
|
125
126
|
align-items: center;
|
|
126
127
|
gap: ${({theme:e})=>e.spacing.sm};
|
|
127
128
|
font-size: ${({theme:e})=>e.typography.textSize.bodySm};
|
|
128
129
|
color: ${({theme:e})=>e.colors.grey_1};
|
|
129
|
-
`;export{
|
|
130
|
+
`;export{a as Container,l as Day,h as DayNumber,f as Details,u as DetailsItem,x as DetailsTitle,d as Dot,g as Dots,s as Grid,n as Header,y as Legend,$ as LegendItem,p as MonthTitle,c as More,m as Weekday};
|
|
130
131
|
//# sourceMappingURL=calendar.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.styles.js","sources":["../../../../../src/components/data-display/calendar/calendar.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { getThemeColor, media } from '../../../theme'\n\nexport const Container = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.md};\n width: 100%;\n min-width: 280px;\n font-family: ${({ theme }) => theme.typography.fontFamily};\n`\n\nexport const Header = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ${({ theme }) => theme.spacing.sm};\n`\n\nexport const MonthTitle = styled.span`\n font-size: ${({ theme }) => theme.typography.textSize.body};\n font-weight: ${({ theme }) => theme.typography.fontWeight.medium};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const Grid = styled.div`\n display: grid;\n grid-template-columns: repeat(7, minmax(0, 1fr));\n gap: 4px;\n\n ${media.down('md')} {\n gap: 2px;\n }\n`\n\nexport const Weekday = styled.abbr`\n padding: 4px;\n text-align: center;\n text-decoration: none;\n text-transform: capitalize;\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n font-weight: ${({ theme }) => theme.typography.fontWeight.medium};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Day = styled.button<{\n $outside: boolean\n $today: boolean\n $clickable: boolean\n}>`\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 2px;\n min-height: 44px;\n padding: 4px;\n border: 1px solid ${({ theme }) => theme.colors.grey_4};\n border-radius: ${({ theme }) => theme.radius.sm};\n background: ${({ $outside, theme }) =>\n $outside ? theme.colors.grey_5 : theme.colors.white};\n font: inherit;\n text-align: left;\n cursor: ${({ $clickable }) => ($clickable ? 'pointer' : 'default')};\n transition:\n background-color ${({ theme }) => theme.motion.duration.fast} ease,\n border-color ${({ theme }) => theme.motion.duration.fast} ease;\n\n ${({ $today, theme }) =>\n $today &&\n css`\n border-color: ${theme.colors.primary};\n box-shadow: inset 0 0 0 1px ${theme.colors.primary};\n `}\n\n ${({ $clickable, theme }) =>\n $clickable &&\n css`\n &:hover {\n background: ${theme.colors.grey_5};\n }\n `}\n\n &:focus-visible {\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: 1px;\n }\n\n ${media.down('md')} {\n min-height: 36px;\n padding: 2px;\n }\n`\n\nexport const DayNumber = styled.span<{ $outside: boolean; $today: boolean }>`\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n font-weight: ${({ $today, theme }) =>\n $today\n ? theme.typography.fontWeight.semibold\n : theme.typography.fontWeight.regular};\n color: ${({ $outside, $today, theme }) =>\n $today\n ? theme.colors.primary\n : $outside\n ? theme.colors.grey_3\n : theme.colors.grey_1};\n`\n\nexport const Dots = styled.span`\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 2px;\n`\n\nexport const Dot = styled.span<{ $color?: string; $size?: number }>`\n flex: none;\n width: ${({ $size }) => $size ?? 8}px;\n height: ${({ $size }) => $size ?? 8}px;\n border-radius: 50%;\n background: ${({ $color, theme }) =>\n getThemeColor($color ?? 'primary', theme)};\n`\n\nexport const More = styled.span`\n flex: none;\n padding: 0 4px;\n border-radius: ${({ theme }) => theme.radius.full};\n background: ${({ theme }) => theme.colors.grey_2};\n color: ${({ theme }) => theme.colors.white};\n font-size: 10px;\n font-weight: ${({ theme }) => theme.typography.fontWeight.medium};\n line-height: 14px;\n\n &::after {\n content: attr(data-count);\n }\n`\n\nexport const Legend = styled.ul`\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: ${({ theme }) => `${theme.spacing.xs} ${theme.spacing.lg}`};\n margin: 0;\n padding: 0;\n list-style: none;\n`\n\nexport const LegendItem = styled.li`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Details = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.sm};\n max-height: 400px;\n overflow-y: auto;\n padding: ${({ theme }) => theme.spacing.md};\n`\n\nexport const DetailsTitle = styled.span`\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const DetailsItem = styled.span`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n"],"names":["Container","styled","div","theme","spacing","md","typography","fontFamily","Header","sm","MonthTitle","span","textSize","body","fontWeight","medium","colors","grey_1","Grid","media","down","Weekday","abbr","caption","grey_2","Day","button","grey_4","radius","$outside","grey_5","white","$clickable","motion","duration","fast","$today","css","primary","border","focus","DayNumber","semibold","regular","grey_3","Dots","Dot","$size","$color","getThemeColor","More","full","Legend","ul","xs","lg","LegendItem","li","bodySm","Details","DetailsTitle","DetailsItem"],"mappings":"
|
|
1
|
+
{"version":3,"file":"calendar.styles.js","sources":["../../../../../src/components/data-display/calendar/calendar.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { getThemeColor, media, thinScrollbar } from '../../../theme'\n\nexport const Container = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.md};\n width: 100%;\n min-width: 280px;\n font-family: ${({ theme }) => theme.typography.fontFamily};\n`\n\nexport const Header = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: ${({ theme }) => theme.spacing.sm};\n`\n\nexport const MonthTitle = styled.span`\n font-size: ${({ theme }) => theme.typography.textSize.body};\n font-weight: ${({ theme }) => theme.typography.fontWeight.medium};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const Grid = styled.div`\n display: grid;\n grid-template-columns: repeat(7, minmax(0, 1fr));\n gap: 4px;\n\n ${media.down('md')} {\n gap: 2px;\n }\n`\n\nexport const Weekday = styled.abbr`\n padding: 4px;\n text-align: center;\n text-decoration: none;\n text-transform: capitalize;\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n font-weight: ${({ theme }) => theme.typography.fontWeight.medium};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Day = styled.button<{\n $outside: boolean\n $today: boolean\n $clickable: boolean\n}>`\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 2px;\n min-height: 44px;\n padding: 4px;\n border: 1px solid ${({ theme }) => theme.colors.grey_4};\n border-radius: ${({ theme }) => theme.radius.sm};\n background: ${({ $outside, theme }) =>\n $outside ? theme.colors.grey_5 : theme.colors.white};\n font: inherit;\n text-align: left;\n cursor: ${({ $clickable }) => ($clickable ? 'pointer' : 'default')};\n transition:\n background-color ${({ theme }) => theme.motion.duration.fast} ease,\n border-color ${({ theme }) => theme.motion.duration.fast} ease;\n\n ${({ $today, theme }) =>\n $today &&\n css`\n border-color: ${theme.colors.primary};\n box-shadow: inset 0 0 0 1px ${theme.colors.primary};\n `}\n\n ${({ $clickable, theme }) =>\n $clickable &&\n css`\n &:hover {\n background: ${theme.colors.grey_5};\n }\n `}\n\n &:focus-visible {\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: 1px;\n }\n\n ${media.down('md')} {\n min-height: 36px;\n padding: 2px;\n }\n`\n\nexport const DayNumber = styled.span<{ $outside: boolean; $today: boolean }>`\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n font-weight: ${({ $today, theme }) =>\n $today\n ? theme.typography.fontWeight.semibold\n : theme.typography.fontWeight.regular};\n color: ${({ $outside, $today, theme }) =>\n $today\n ? theme.colors.primary\n : $outside\n ? theme.colors.grey_3\n : theme.colors.grey_1};\n`\n\nexport const Dots = styled.span`\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 2px;\n`\n\nexport const Dot = styled.span<{ $color?: string; $size?: number }>`\n flex: none;\n width: ${({ $size }) => $size ?? 8}px;\n height: ${({ $size }) => $size ?? 8}px;\n border-radius: 50%;\n background: ${({ $color, theme }) =>\n getThemeColor($color ?? 'primary', theme)};\n`\n\nexport const More = styled.span`\n flex: none;\n padding: 0 4px;\n border-radius: ${({ theme }) => theme.radius.full};\n background: ${({ theme }) => theme.colors.grey_2};\n color: ${({ theme }) => theme.colors.white};\n font-size: 10px;\n font-weight: ${({ theme }) => theme.typography.fontWeight.medium};\n line-height: 14px;\n\n &::after {\n content: attr(data-count);\n }\n`\n\nexport const Legend = styled.ul`\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: ${({ theme }) => `${theme.spacing.xs} ${theme.spacing.lg}`};\n margin: 0;\n padding: 0;\n list-style: none;\n`\n\nexport const LegendItem = styled.li`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Details = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.sm};\n max-height: 400px;\n overflow-y: auto;\n ${thinScrollbar}\n padding: ${({ theme }) => theme.spacing.md};\n`\n\nexport const DetailsTitle = styled.span`\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const DetailsItem = styled.span`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n"],"names":["Container","styled","div","theme","spacing","md","typography","fontFamily","Header","sm","MonthTitle","span","textSize","body","fontWeight","medium","colors","grey_1","Grid","media","down","Weekday","abbr","caption","grey_2","Day","button","grey_4","radius","$outside","grey_5","white","$clickable","motion","duration","fast","$today","css","primary","border","focus","DayNumber","semibold","regular","grey_3","Dots","Dot","$size","$color","getThemeColor","More","full","Legend","ul","xs","lg","LegendItem","li","bodySm","Details","thinScrollbar","DetailsTitle","DetailsItem"],"mappings":"6NAIaA,MAAAA,EAAYC,EAAOC,GAAG;;;SAG1B,EAAGC,WAAYA,EAAMC,QAAQC;;;iBAGrB,EAAGF,WAAYA,EAAMG,WAAWC;EAGpCC,EAASP,EAAOC,GAAG;;;;SAIvB,EAAGC,WAAYA,EAAMC,QAAQK;EAGzBC,EAAaT,EAAOU,IAAI;eACtB,EAAGR,WAAYA,EAAMG,WAAWM,SAASC;iBACvC,EAAGV,WAAYA,EAAMG,WAAWQ,WAAWC;WACjD,EAAGZ,WAAYA,EAAMa,OAAOC;EAG1B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AU,UAAW7C;EAG1B+C,EAAOjD,EAAOU,IAAI;;;mBAGZ,EAAGR,WAAYA,EAAMyB,OAAOuB;gBAC/B,EAAGhD,WAAYA,EAAMa,OAAOQ;WACjC,EAAGrB,WAAYA,EAAMa,OAAOe;;iBAEtB,EAAG5B,WAAYA,EAAMG,WAAWQ,WAAWC;;;;;;EAQ/CqC,EAASnD,EAAOoD,EAAE;;;;SAItB,EAAGlD,cAAeA,EAAMC,QAAQkD,MAAMnD,EAAMC,QAAQmD;;;;EAMhDC,EAAavD,EAAOwD,EAAE;;;SAG1B,EAAGtD,WAAYA,EAAMC,QAAQK;eACvB,EAAGN,WAAYA,EAAMG,WAAWM,SAAS8C;WAC7C,EAAGvD,WAAYA,EAAMa,OAAOQ;EAG1BmC,EAAU1D,EAAOC,GAAG;;;SAGxB,EAAGC,WAAYA,EAAMC,QAAQK;;;IAGlCmD;aACS,EAAGzD,WAAYA,EAAMC,QAAQC;EAG7BwD,EAAe5D,EAAOU,IAAI;eACxB,EAAGR,WAAYA,EAAMG,WAAWM,SAAS8C;iBACvC,EAAGvD,WAAYA,EAAMG,WAAWQ,WAAW4B;WACjD,EAAGvC,WAAYA,EAAMa,OAAOC;EAG1B6C,EAAc7D,EAAOU,IAAI;;;SAG7B,EAAGR,WAAYA,EAAMC,QAAQK;eACvB,EAAGN,WAAYA,EAAMG,WAAWM,SAAS8C;WAC7C,EAAGvD,WAAYA,EAAMa,OAAOC;"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{styled as e,css as t}from"styled-components";import{
|
|
1
|
+
import{styled as e,css as t}from"styled-components";import{thinScrollbar as o}from"../../../theme/scrollbar.js";import{getThemeColor as i}from"../../../theme/theme.util.js";const r=(e,t)=>`color-mix(in srgb, ${t.colors.primary} 10%, ${e})`,n=e.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${({theme:e})=>e.spacing.md};
|
|
5
5
|
width: 100%;
|
|
6
6
|
min-width: 0;
|
|
7
7
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
8
|
-
`,
|
|
8
|
+
`,a=e.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: stretch;
|
|
11
11
|
gap: ${({theme:e})=>e.spacing.sm};
|
|
12
12
|
min-width: 0;
|
|
13
|
-
`,
|
|
13
|
+
`,l=e.span`
|
|
14
14
|
flex: none;
|
|
15
15
|
align-self: center;
|
|
16
16
|
font-size: ${({theme:e})=>e.typography.textSize.caption};
|
|
@@ -24,11 +24,12 @@ import{styled as e,css as t}from"styled-components";import{getThemeColor as o}fr
|
|
|
24
24
|
writing-mode: vertical-rl;
|
|
25
25
|
transform: rotate(180deg);
|
|
26
26
|
`}
|
|
27
|
-
`,
|
|
27
|
+
`,s=e.div`
|
|
28
28
|
flex: 1;
|
|
29
29
|
min-width: 0;
|
|
30
30
|
overflow-x: auto;
|
|
31
|
-
|
|
31
|
+
${o}
|
|
32
|
+
`,h=e.div`
|
|
32
33
|
display: grid;
|
|
33
34
|
grid-template-columns: ${({$columns:e})=>e};
|
|
34
35
|
grid-template-rows: ${({$rows:e})=>e};
|
|
@@ -46,7 +47,7 @@ import{styled as e,css as t}from"styled-components";import{getThemeColor as o}fr
|
|
|
46
47
|
width: max-content;
|
|
47
48
|
margin: 0 auto;
|
|
48
49
|
`}
|
|
49
|
-
`,
|
|
50
|
+
`,p=e.div`
|
|
50
51
|
display: flex;
|
|
51
52
|
flex-direction: column;
|
|
52
53
|
justify-content: center;
|
|
@@ -56,7 +57,7 @@ import{styled as e,css as t}from"styled-components";import{getThemeColor as o}fr
|
|
|
56
57
|
padding: 4px 8px;
|
|
57
58
|
text-align: ${({$row:e,$variant:t})=>e&&"chip"===t?"left":"center"};
|
|
58
59
|
background: ${({$variant:e,theme:t})=>"fill"===e?t.colors.grey_5:"transparent"};
|
|
59
|
-
`,
|
|
60
|
+
`,m=e.span`
|
|
60
61
|
max-width: 100%;
|
|
61
62
|
overflow: hidden;
|
|
62
63
|
text-overflow: ellipsis;
|
|
@@ -84,8 +85,8 @@ import{styled as e,css as t}from"styled-components";import{getThemeColor as o}fr
|
|
|
84
85
|
font: inherit;
|
|
85
86
|
font-size: ${({$variant:e,theme:t})=>"chip"===e?t.typography.textSize.caption:t.typography.textSize.bodySm};
|
|
86
87
|
font-weight: ${({theme:e})=>e.typography.fontWeight.semibold};
|
|
87
|
-
background: ${({$background:e,$variant:t,$highlighted:
|
|
88
|
-
color: ${({$color:e,theme:t})=>e?
|
|
88
|
+
background: ${({$background:e,$variant:t,$highlighted:o,theme:n})=>{const a=e?i(e,n):"chip"===t?n.colors.grey_5:n.colors.white;return o?r(a,n):a}};
|
|
89
|
+
color: ${({$color:e,theme:t})=>e?i(e,t):t.colors.grey_1};
|
|
89
90
|
border-radius: ${({$variant:e,theme:t})=>"chip"===e?t.radius.sm:"0"};
|
|
90
91
|
cursor: ${({$clickable:e})=>e?"pointer":"default"};
|
|
91
92
|
transition:
|
|
@@ -105,7 +106,7 @@ import{styled as e,css as t}from"styled-components";import{getThemeColor as o}fr
|
|
|
105
106
|
outline: 2px solid ${({theme:e})=>e.colors.border.focus};
|
|
106
107
|
outline-offset: -2px;
|
|
107
108
|
}
|
|
108
|
-
`,
|
|
109
|
+
`,g=e.span`
|
|
109
110
|
display: inline-flex;
|
|
110
111
|
align-items: center;
|
|
111
112
|
justify-content: center;
|
|
@@ -117,14 +118,14 @@ import{styled as e,css as t}from"styled-components";import{getThemeColor as o}fr
|
|
|
117
118
|
box-shadow: ${({theme:e})=>e.shadow.xs};
|
|
118
119
|
font-size: ${({theme:e})=>e.typography.textSize.caption};
|
|
119
120
|
color: ${({theme:e})=>e.colors.grey_1};
|
|
120
|
-
|
|
121
|
+
`,$=e.span`
|
|
121
122
|
flex: none;
|
|
122
123
|
width: 14px;
|
|
123
124
|
height: 14px;
|
|
124
125
|
border-radius: 50%;
|
|
125
126
|
border: 2px solid ${({theme:e})=>e.colors.white};
|
|
126
|
-
background: ${({$color:e,theme:t})=>
|
|
127
|
-
|
|
127
|
+
background: ${({$color:e,theme:t})=>i(e??"primary",t)};
|
|
128
|
+
`,f=e.span`
|
|
128
129
|
font-size: 11px;
|
|
129
130
|
color: ${({theme:e})=>e.colors.grey_2};
|
|
130
131
|
|
|
@@ -139,13 +140,13 @@ import{styled as e,css as t}from"styled-components";import{getThemeColor as o}fr
|
|
|
139
140
|
margin: 0;
|
|
140
141
|
padding: 0;
|
|
141
142
|
list-style: none;
|
|
142
|
-
`,
|
|
143
|
+
`,x=e.li`
|
|
143
144
|
display: flex;
|
|
144
145
|
align-items: center;
|
|
145
146
|
gap: ${({theme:e})=>e.spacing.sm};
|
|
146
147
|
font-size: ${({theme:e})=>e.typography.textSize.bodySm};
|
|
147
148
|
color: ${({theme:e})=>e.colors.grey_2};
|
|
148
|
-
`,
|
|
149
|
+
`,w=e.span`
|
|
149
150
|
display: inline-flex;
|
|
150
151
|
flex: none;
|
|
151
152
|
align-items: center;
|
|
@@ -153,15 +154,15 @@ import{styled as e,css as t}from"styled-components";import{getThemeColor as o}fr
|
|
|
153
154
|
width: 18px;
|
|
154
155
|
height: 18px;
|
|
155
156
|
border-radius: ${({theme:e})=>e.radius.sm};
|
|
156
|
-
background: ${({$color:e,$highlighted:t,theme:
|
|
157
|
+
background: ${({$color:e,$highlighted:t,theme:o})=>t?r(o.colors.white,o):i(e,o)};
|
|
157
158
|
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
|
|
158
159
|
font-size: 11px;
|
|
159
160
|
font-weight: ${({theme:e})=>e.typography.fontWeight.bold};
|
|
160
|
-
color: ${({$symbolColor:e,theme:t})=>e?
|
|
161
|
-
`,
|
|
161
|
+
color: ${({$symbolColor:e,theme:t})=>e?i(e,t):t.colors.grey_1};
|
|
162
|
+
`,u=e.div`
|
|
162
163
|
padding: ${({theme:e})=>e.spacing.md};
|
|
163
164
|
font-size: ${({theme:e})=>e.typography.textSize.bodySm};
|
|
164
165
|
line-height: ${({theme:e})=>e.typography.lineHeight.normal};
|
|
165
166
|
color: ${({theme:e})=>e.colors.grey_1};
|
|
166
|
-
`;export{
|
|
167
|
+
`;export{l as AxisTitle,a as Body,d as Cell,g as Count,$ as Dot,h as Grid,p as Header,m as HeaderLabel,c as HeaderSublabel,y as Legend,u as LegendDescription,x as LegendItem,f as More,s as Scroll,w as Swatch,n as Wrapper};
|
|
167
168
|
//# sourceMappingURL=matrix.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matrix.styles.js","sources":["../../../../../src/components/data-display/matrix/matrix.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\n\ntype Variant = 'fill' | 'chip'\n\n/** Fundo da zona destacada: um véu roxo leve sobre o fundo da célula. */\nconst highlightTint = (base: string, theme: any) =>\n `color-mix(in srgb, ${theme.colors.primary} 10%, ${base})`\n\nexport const Wrapper = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.md};\n width: 100%;\n min-width: 0;\n font-family: ${({ theme }) => theme.typography.fontFamily};\n`\n\nexport const Body = styled.div`\n display: flex;\n align-items: stretch;\n gap: ${({ theme }) => theme.spacing.sm};\n min-width: 0;\n`\n\nexport const AxisTitle = styled.span<{ $vertical?: boolean }>`\n flex: none;\n align-self: center;\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n letter-spacing: 0.04em;\n text-transform: uppercase;\n text-align: center;\n color: ${({ theme }) => theme.colors.grey_2};\n\n ${({ $vertical }) =>\n $vertical &&\n css`\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n `}\n`\n\nexport const Scroll = styled.div`\n flex: 1;\n min-width: 0;\n overflow-x: auto;\n`\n\nexport const Grid = styled.div<{\n $variant: Variant\n $columns: string\n $rows: string\n}>`\n display: grid;\n grid-template-columns: ${({ $columns }) => $columns};\n grid-template-rows: ${({ $rows }) => $rows};\n min-width: min-content;\n\n ${({ $variant, theme }) =>\n $variant === 'fill'\n ? css`\n gap: 1px;\n border: 1px solid ${theme.colors.grey_4};\n border-radius: ${theme.radius.md};\n background: ${theme.colors.grey_4};\n overflow: hidden;\n `\n : css`\n gap: 4px;\n align-items: center;\n width: max-content;\n margin: 0 auto;\n `}\n`\n\nexport const Header = styled.div<{ $variant: Variant; $row?: boolean }>`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: ${({ $row, $variant }) =>\n $row && $variant === 'chip' ? 'flex-start' : 'center'};\n gap: 2px;\n min-width: 0;\n padding: 4px 8px;\n text-align: ${({ $row, $variant }) =>\n $row && $variant === 'chip' ? 'left' : 'center'};\n background: ${({ $variant, theme }) =>\n $variant === 'fill' ? theme.colors.grey_5 : 'transparent'};\n`\n\nexport const HeaderLabel = styled.span<{ $variant: Variant; $row?: boolean }>`\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: ${({ $variant, $row, theme }) =>\n $variant === 'chip' && $row\n ? theme.typography.textSize.bodySm\n : theme.typography.textSize.caption};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ $variant, $row, theme }) =>\n $variant === 'chip' && $row ? theme.colors.grey_1 : theme.colors.grey_2};\n`\n\nexport const HeaderSublabel = styled.span`\n font-size: 11px;\n line-height: 1.2;\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Cell = styled.div<{\n $variant: Variant\n $background?: string\n $color?: string\n $highlighted: boolean\n $clickable: boolean\n}>`\n position: relative;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n align-content: center;\n gap: 4px;\n min-width: 0;\n height: 100%;\n margin: 0;\n padding: 4px;\n border: none;\n font: inherit;\n font-size: ${({ $variant, theme }) =>\n $variant === 'chip'\n ? theme.typography.textSize.caption\n : theme.typography.textSize.bodySm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n background: ${({ $background, $variant, $highlighted, theme }) => {\n const base = $background\n ? getThemeColor($background, theme)\n : $variant === 'chip'\n ? theme.colors.grey_5\n : theme.colors.white\n return $highlighted ? highlightTint(base, theme) : base\n }};\n color: ${({ $color, theme }) =>\n $color ? getThemeColor($color, theme) : theme.colors.grey_1};\n border-radius: ${({ $variant, theme }) =>\n $variant === 'chip' ? theme.radius.sm : '0'};\n cursor: ${({ $clickable }) => ($clickable ? 'pointer' : 'default')};\n transition:\n transform ${({ theme }) => theme.motion.duration.fast} ease,\n box-shadow ${({ theme }) => theme.motion.duration.fast} ease;\n\n ${({ $clickable, theme }) =>\n $clickable &&\n css`\n &:hover {\n z-index: 1;\n transform: scale(1.03);\n box-shadow: ${theme.shadow.md};\n }\n `}\n\n &:focus-visible {\n z-index: 1;\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: -2px;\n }\n`\n\nexport const Count = styled.span`\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 24px;\n height: 24px;\n padding: 0 6px;\n border-radius: ${({ theme }) => theme.radius.full};\n background: ${({ theme }) => theme.colors.white};\n box-shadow: ${({ theme }) => theme.shadow.xs};\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const Dot = styled.span<{ $color?: string }>`\n flex: none;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n border: 2px solid ${({ theme }) => theme.colors.white};\n background: ${({ $color, theme }) =>\n getThemeColor($color ?? 'primary', theme)};\n`\n\nexport const More = styled.span`\n font-size: 11px;\n color: ${({ theme }) => theme.colors.grey_2};\n\n &::after {\n content: attr(data-count);\n }\n`\n\nexport const Legend = styled.ul`\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: ${({ theme }) => `${theme.spacing.xs} ${theme.spacing.lg}`};\n margin: 0;\n padding: 0;\n list-style: none;\n`\n\nexport const LegendItem = styled.li`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Swatch = styled.span<{\n $color: string\n $symbolColor?: string\n $highlighted?: boolean\n}>`\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n border-radius: ${({ theme }) => theme.radius.sm};\n background: ${({ $color, $highlighted, theme }) =>\n $highlighted\n ? highlightTint(theme.colors.white, theme)\n : getThemeColor($color, theme)};\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n font-size: 11px;\n font-weight: ${({ theme }) => theme.typography.fontWeight.bold};\n color: ${({ $symbolColor, theme }) =>\n $symbolColor ? getThemeColor($symbolColor, theme) : theme.colors.grey_1};\n`\n\nexport const LegendDescription = styled.div`\n padding: ${({ theme }) => theme.spacing.md};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n line-height: ${({ theme }) => theme.typography.lineHeight.normal};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n"],"names":["highlightTint","base","theme","colors","primary","Wrapper","styled","div","spacing","md","typography","fontFamily","Body","sm","AxisTitle","span","textSize","caption","fontWeight","semibold","grey_2","$vertical","css","Scroll","Grid","$columns","$rows","$variant","grey_4","radius","Header","$row","grey_5","HeaderLabel","bodySm","grey_1","HeaderSublabel","Cell","$background","$highlighted","getThemeColor","white","$color","$clickable","motion","duration","fast","shadow","border","focus","Count","full","xs","Dot","More","Legend","ul","lg","LegendItem","li","Swatch","bold","$symbolColor","LegendDescription","lineHeight","normal"],"mappings":"iHAOA,MAAMA,EAAgBA,CAACC,EAAcC,IACb,sBAAAA,EAAMC,OAAOC,gBAAgBH,KAExCI,EAAUC,EAAOC,GAAG;;;SAGxB,EAAGL,WAAYA,EAAMM,QAAQC;;;iBAGrB,EAAGP,WAAYA,EAAMQ,WAAWC;EAGpCC,EAAON,EAAOC,GAAG;;;SAGrB,EAAGL,WAAYA,EAAMM,QAAQK;;EAIzBC,EAAYR,EAAOS,IAA6B;;;eAG9C,EAAGb,WAAYA,EAAMQ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B;EAG1BwC,EAAStD,EAAOS,IAI3B;;;;;;;mBAOiB,EAAGb,WAAYA,EAAM2B,OAAOhB;gBAC/B,EAAG6B,SAAQH,eAAcrC,WACrCqC,EACIvC,EAAcE,EAAMC,OAAOsC,MAAOvC,GAClCsC,EAAcE,EAAQxC;;;iBAGb,EAAGA,WAAYA,EAAMQ,WAAWQ,WAAW2C;WACjD,EAAGC,eAAc5D,WACxB4D,EAAetB,EAAcsB,EAAc5D,GAASA,EAAMC,OAAOgC;EAGxD4B,EAAoBzD,EAAOC,GAAG;aAC9B,EAAGL,WAAYA,EAAMM,QAAQC;eAC3B,EAAGP,WAAYA,EAAMQ,WAAWM,SAASkB;iBACvC,EAAGhC,WAAYA,EAAMQ,WAAWsD,WAAWC;WACjD,EAAG/D,WAAYA,EAAMC,OAAOgC;"}
|
|
1
|
+
{"version":3,"file":"matrix.styles.js","sources":["../../../../../src/components/data-display/matrix/matrix.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { getThemeColor, thinScrollbar } from '../../../theme'\n\ntype Variant = 'fill' | 'chip'\n\n/** Fundo da zona destacada: um véu roxo leve sobre o fundo da célula. */\nconst highlightTint = (base: string, theme: any) =>\n `color-mix(in srgb, ${theme.colors.primary} 10%, ${base})`\n\nexport const Wrapper = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.md};\n width: 100%;\n min-width: 0;\n font-family: ${({ theme }) => theme.typography.fontFamily};\n`\n\nexport const Body = styled.div`\n display: flex;\n align-items: stretch;\n gap: ${({ theme }) => theme.spacing.sm};\n min-width: 0;\n`\n\nexport const AxisTitle = styled.span<{ $vertical?: boolean }>`\n flex: none;\n align-self: center;\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n letter-spacing: 0.04em;\n text-transform: uppercase;\n text-align: center;\n color: ${({ theme }) => theme.colors.grey_2};\n\n ${({ $vertical }) =>\n $vertical &&\n css`\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n `}\n`\n\nexport const Scroll = styled.div`\n flex: 1;\n min-width: 0;\n overflow-x: auto;\n ${thinScrollbar}\n`\n\nexport const Grid = styled.div<{\n $variant: Variant\n $columns: string\n $rows: string\n}>`\n display: grid;\n grid-template-columns: ${({ $columns }) => $columns};\n grid-template-rows: ${({ $rows }) => $rows};\n min-width: min-content;\n\n ${({ $variant, theme }) =>\n $variant === 'fill'\n ? css`\n gap: 1px;\n border: 1px solid ${theme.colors.grey_4};\n border-radius: ${theme.radius.md};\n background: ${theme.colors.grey_4};\n overflow: hidden;\n `\n : css`\n gap: 4px;\n align-items: center;\n width: max-content;\n margin: 0 auto;\n `}\n`\n\nexport const Header = styled.div<{ $variant: Variant; $row?: boolean }>`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: ${({ $row, $variant }) =>\n $row && $variant === 'chip' ? 'flex-start' : 'center'};\n gap: 2px;\n min-width: 0;\n padding: 4px 8px;\n text-align: ${({ $row, $variant }) =>\n $row && $variant === 'chip' ? 'left' : 'center'};\n background: ${({ $variant, theme }) =>\n $variant === 'fill' ? theme.colors.grey_5 : 'transparent'};\n`\n\nexport const HeaderLabel = styled.span<{ $variant: Variant; $row?: boolean }>`\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: ${({ $variant, $row, theme }) =>\n $variant === 'chip' && $row\n ? theme.typography.textSize.bodySm\n : theme.typography.textSize.caption};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ $variant, $row, theme }) =>\n $variant === 'chip' && $row ? theme.colors.grey_1 : theme.colors.grey_2};\n`\n\nexport const HeaderSublabel = styled.span`\n font-size: 11px;\n line-height: 1.2;\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Cell = styled.div<{\n $variant: Variant\n $background?: string\n $color?: string\n $highlighted: boolean\n $clickable: boolean\n}>`\n position: relative;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n align-content: center;\n gap: 4px;\n min-width: 0;\n height: 100%;\n margin: 0;\n padding: 4px;\n border: none;\n font: inherit;\n font-size: ${({ $variant, theme }) =>\n $variant === 'chip'\n ? theme.typography.textSize.caption\n : theme.typography.textSize.bodySm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n background: ${({ $background, $variant, $highlighted, theme }) => {\n const base = $background\n ? getThemeColor($background, theme)\n : $variant === 'chip'\n ? theme.colors.grey_5\n : theme.colors.white\n return $highlighted ? highlightTint(base, theme) : base\n }};\n color: ${({ $color, theme }) =>\n $color ? getThemeColor($color, theme) : theme.colors.grey_1};\n border-radius: ${({ $variant, theme }) =>\n $variant === 'chip' ? theme.radius.sm : '0'};\n cursor: ${({ $clickable }) => ($clickable ? 'pointer' : 'default')};\n transition:\n transform ${({ theme }) => theme.motion.duration.fast} ease,\n box-shadow ${({ theme }) => theme.motion.duration.fast} ease;\n\n ${({ $clickable, theme }) =>\n $clickable &&\n css`\n &:hover {\n z-index: 1;\n transform: scale(1.03);\n box-shadow: ${theme.shadow.md};\n }\n `}\n\n &:focus-visible {\n z-index: 1;\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: -2px;\n }\n`\n\nexport const Count = styled.span`\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 24px;\n height: 24px;\n padding: 0 6px;\n border-radius: ${({ theme }) => theme.radius.full};\n background: ${({ theme }) => theme.colors.white};\n box-shadow: ${({ theme }) => theme.shadow.xs};\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const Dot = styled.span<{ $color?: string }>`\n flex: none;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n border: 2px solid ${({ theme }) => theme.colors.white};\n background: ${({ $color, theme }) =>\n getThemeColor($color ?? 'primary', theme)};\n`\n\nexport const More = styled.span`\n font-size: 11px;\n color: ${({ theme }) => theme.colors.grey_2};\n\n &::after {\n content: attr(data-count);\n }\n`\n\nexport const Legend = styled.ul`\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: ${({ theme }) => `${theme.spacing.xs} ${theme.spacing.lg}`};\n margin: 0;\n padding: 0;\n list-style: none;\n`\n\nexport const LegendItem = styled.li`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Swatch = styled.span<{\n $color: string\n $symbolColor?: string\n $highlighted?: boolean\n}>`\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n border-radius: ${({ theme }) => theme.radius.sm};\n background: ${({ $color, $highlighted, theme }) =>\n $highlighted\n ? highlightTint(theme.colors.white, theme)\n : getThemeColor($color, theme)};\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n font-size: 11px;\n font-weight: ${({ theme }) => theme.typography.fontWeight.bold};\n color: ${({ $symbolColor, theme }) =>\n $symbolColor ? getThemeColor($symbolColor, theme) : theme.colors.grey_1};\n`\n\nexport const LegendDescription = styled.div`\n padding: ${({ theme }) => theme.spacing.md};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n line-height: ${({ theme }) => theme.typography.lineHeight.normal};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n"],"names":["highlightTint","base","theme","colors","primary","Wrapper","styled","div","spacing","md","typography","fontFamily","Body","sm","AxisTitle","span","textSize","caption","fontWeight","semibold","grey_2","$vertical","css","Scroll","thinScrollbar","Grid","$columns","$rows","$variant","grey_4","radius","Header","$row","grey_5","HeaderLabel","bodySm","grey_1","HeaderSublabel","Cell","$background","$highlighted","getThemeColor","white","$color","$clickable","motion","duration","fast","shadow","border","focus","Count","full","xs","Dot","More","Legend","ul","lg","LegendItem","li","Swatch","bold","$symbolColor","LegendDescription","lineHeight","normal"],"mappings":"6KAOA,MAAMA,EAAgBA,CAACC,EAAcC,IACb,sBAAAA,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OiB;;;;;EAO1BoC,EAASlD,EAAOmD,EAAE;;;;SAItB,EAAGvD,cAAeA,EAAMM,QAAQ6C,MAAMnD,EAAMM,QAAQkD;;;;EAMhDC,EAAarD,EAAOsD,EAAE;;;SAG1B,EAAG1D,WAAYA,EAAMM,QAAQK;eACvB,EAAGX,WAAYA,EAAMQ,WAAWM,SAASmB;WAC7C,EAAGjC,WAAYA,EAAMC,OAAOiB;EAG1ByC,EAASvD,EAAOS,IAI3B;;;;;;;mBAOiB,EAAGb,WAAYA,EAAM4B,OAAOjB;gBAC/B,EAAG8B,SAAQH,eAActC,WACrCsC,EACIxC,EAAcE,EAAMC,OAAOuC,MAAOxC,GAClCuC,EAAcE,EAAQzC;;;iBAGb,EAAGA,WAAYA,EAAMQ,WAAWQ,WAAW4C;WACjD,EAAGC,eAAc7D,WACxB6D,EAAetB,EAAcsB,EAAc7D,GAASA,EAAMC,OAAOiC;EAGxD4B,EAAoB1D,EAAOC,GAAG;aAC9B,EAAGL,WAAYA,EAAMM,QAAQC;eAC3B,EAAGP,WAAYA,EAAMQ,WAAWM,SAASmB;iBACvC,EAAGjC,WAAYA,EAAMQ,WAAWuD,WAAWC;WACjD,EAAGhE,WAAYA,EAAMC,OAAOiC;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{styled as e,css as o}from"styled-components";const
|
|
1
|
+
import{styled as e,css as o}from"styled-components";import{thinScrollbar as t}from"../../../theme/scrollbar.js";const r=e.aside`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${({$width:e})=>e};
|
|
@@ -17,32 +17,33 @@ import{styled as e,css as o}from"styled-components";const t=e.aside`
|
|
|
17
17
|
gap: ${({theme:e})=>e.spacing.sm};
|
|
18
18
|
padding: ${({theme:e})=>e.spacing.md};
|
|
19
19
|
padding-bottom: ${({theme:e})=>e.spacing.sm};
|
|
20
|
-
`,
|
|
20
|
+
`,d=e.div`
|
|
21
21
|
display: flex;
|
|
22
22
|
align-items: flex-start;
|
|
23
23
|
justify-content: space-between;
|
|
24
24
|
gap: ${({theme:e})=>e.spacing.sm};
|
|
25
|
-
`,
|
|
25
|
+
`,n=e.h3`
|
|
26
26
|
margin: 0;
|
|
27
27
|
font-size: ${({theme:e})=>e.typography.textSize.bodySm};
|
|
28
28
|
font-weight: ${({theme:e})=>e.typography.fontWeight.semibold};
|
|
29
29
|
color: ${({theme:e})=>e.colors.grey_1};
|
|
30
|
-
`,
|
|
30
|
+
`,s=e.p`
|
|
31
31
|
margin: 2px 0 0;
|
|
32
32
|
font-size: ${({theme:e})=>e.typography.textSize.caption};
|
|
33
33
|
color: ${({theme:e})=>e.colors.grey_2};
|
|
34
|
-
`,
|
|
34
|
+
`,a=e.div`
|
|
35
35
|
display: flex;
|
|
36
36
|
flex: 1;
|
|
37
37
|
flex-direction: column;
|
|
38
38
|
gap: ${({theme:e})=>e.spacing.sm};
|
|
39
39
|
min-height: 0;
|
|
40
40
|
overflow-y: auto;
|
|
41
|
+
${t}
|
|
41
42
|
padding: ${({theme:e})=>e.spacing.sm} ${({theme:e})=>e.spacing.md};
|
|
42
|
-
`,
|
|
43
|
+
`,l=e.div`
|
|
43
44
|
padding: ${({theme:e})=>e.spacing.sm} ${({theme:e})=>e.spacing.md};
|
|
44
45
|
border-top: 1px solid ${({theme:e})=>e.colors.grey_5};
|
|
45
|
-
`,
|
|
46
|
+
`,m=e.button`
|
|
46
47
|
display: flex;
|
|
47
48
|
flex: none;
|
|
48
49
|
align-items: flex-start;
|
|
@@ -63,7 +64,7 @@ import{styled as e,css as o}from"styled-components";const t=e.aside`
|
|
|
63
64
|
outline: 2px solid ${({theme:e})=>e.colors.border.focus};
|
|
64
65
|
outline-offset: 2px;
|
|
65
66
|
}
|
|
66
|
-
`,
|
|
67
|
+
`,c=e.button`
|
|
67
68
|
display: flex;
|
|
68
69
|
flex-direction: column;
|
|
69
70
|
gap: 4px;
|
|
@@ -106,5 +107,5 @@ import{styled as e,css as o}from"styled-components";const t=e.aside`
|
|
|
106
107
|
outline: 2px solid ${({theme:e})=>e.colors.border.focus};
|
|
107
108
|
outline-offset: 2px;
|
|
108
109
|
}
|
|
109
|
-
`;export{
|
|
110
|
+
`;export{m as CollapsedStrip,s as Description,l as Footer,i as Header,c as Item,a as List,r as Panel,n as Title,d as TitleRow};
|
|
110
111
|
//# sourceMappingURL=side-panel.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-panel.styles.js","sources":["../../../../../src/components/data-display/side-panel/side-panel.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nexport const Panel = styled.aside<{ $width: string }>`\n display: flex;\n flex-direction: column;\n width: ${({ $width }) => $width};\n min-width: 0;\n min-height: 0;\n max-height: 100%;\n border: 1px solid ${({ theme }) => theme.colors.grey_5};\n border-radius: ${({ theme }) => theme.radius.xl};\n background: ${({ theme }) => theme.colors.white};\n box-shadow: ${({ theme }) => theme.box_shadow.card};\n font-family: ${({ theme }) => theme.typography.fontFamily};\n overflow: hidden;\n`\n\nexport const Header = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.sm};\n padding: ${({ theme }) => theme.spacing.md};\n padding-bottom: ${({ theme }) => theme.spacing.sm};\n`\n\nexport const TitleRow = styled.div`\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: ${({ theme }) => theme.spacing.sm};\n`\n\nexport const Title = styled.h3`\n margin: 0;\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const Description = styled.p`\n margin: 2px 0 0;\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const List = styled.div`\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.sm};\n min-height: 0;\n overflow-y: auto;\n padding: ${({ theme }) => theme.spacing.sm} ${({ theme })
|
|
1
|
+
{"version":3,"file":"side-panel.styles.js","sources":["../../../../../src/components/data-display/side-panel/side-panel.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { thinScrollbar } from '../../../theme'\n\nexport const Panel = styled.aside<{ $width: string }>`\n display: flex;\n flex-direction: column;\n width: ${({ $width }) => $width};\n min-width: 0;\n min-height: 0;\n max-height: 100%;\n border: 1px solid ${({ theme }) => theme.colors.grey_5};\n border-radius: ${({ theme }) => theme.radius.xl};\n background: ${({ theme }) => theme.colors.white};\n box-shadow: ${({ theme }) => theme.box_shadow.card};\n font-family: ${({ theme }) => theme.typography.fontFamily};\n overflow: hidden;\n`\n\nexport const Header = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.sm};\n padding: ${({ theme }) => theme.spacing.md};\n padding-bottom: ${({ theme }) => theme.spacing.sm};\n`\n\nexport const TitleRow = styled.div`\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: ${({ theme }) => theme.spacing.sm};\n`\n\nexport const Title = styled.h3`\n margin: 0;\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const Description = styled.p`\n margin: 2px 0 0;\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const List = styled.div`\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.sm};\n min-height: 0;\n overflow-y: auto;\n ${thinScrollbar}\n padding: ${({ theme }) => theme.spacing.sm} ${({ theme }) =>\n theme.spacing.md};\n`\n\nexport const Footer = styled.div`\n padding: ${({ theme }) => theme.spacing.sm} ${({ theme }) => theme.spacing.md};\n border-top: 1px solid ${({ theme }) => theme.colors.grey_5};\n`\n\nexport const CollapsedStrip = styled.button`\n display: flex;\n flex: none;\n align-items: flex-start;\n justify-content: center;\n width: 40px;\n min-height: 120px;\n padding: ${({ theme }) => theme.spacing.sm};\n border: none;\n border-radius: ${({ theme }) => theme.radius.md};\n background: ${({ theme }) => theme.colors.grey_6};\n cursor: pointer;\n\n &:hover {\n background: ${({ theme }) => theme.colors.grey_5};\n }\n\n &:focus-visible {\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: 2px;\n }\n`\n\nexport const Item = styled.button<{ $selected: boolean }>`\n display: flex;\n flex-direction: column;\n gap: 4px;\n width: 100%;\n padding: ${({ theme }) => theme.spacing.sm}\n ${({ theme }) => theme.spacing[1.5]};\n border: 1px solid ${({ theme }) => theme.colors.grey_4};\n border-radius: ${({ theme }) => theme.radius.md};\n background: ${({ theme }) => theme.colors.white};\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: background-color ${({ theme }) => theme.motion.duration.fast} ease;\n\n &:hover:not(:disabled) {\n background: ${({ theme }) => theme.colors.grey_6};\n }\n\n ${({ $selected, theme }) =>\n $selected &&\n css`\n border-color: transparent;\n background:\n linear-gradient(${theme.colors.white}, ${theme.colors.white})\n padding-box,\n ${theme.colors.brand.gradient} border-box;\n\n &:hover:not(:disabled) {\n background:\n linear-gradient(${theme.colors.grey_6}, ${theme.colors.grey_6})\n padding-box,\n ${theme.colors.brand.gradient} border-box;\n }\n `}\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n\n &:focus-visible {\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: 2px;\n }\n`\n"],"names":["Panel","styled","aside","$width","theme","colors","grey_5","radius","xl","white","box_shadow","card","typography","fontFamily","Header","div","spacing","sm","md","TitleRow","Title","h3","textSize","bodySm","fontWeight","semibold","grey_1","Description","p","caption","grey_2","List","thinScrollbar","Footer","CollapsedStrip","button","grey_6","border","focus","Item","grey_4","motion","duration","fast","$selected","css","brand","gradient"],"mappings":"gHAIaA,MAAAA,EAAQC,EAAOC,KAAyB;;;WAG1C,EAAGC,YAAaA;;;;sBAIL,EAAGC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