@vkzstudio/muza-ui 1.0.47 → 1.0.48
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/dist/components/Accordion/Accordion.d.ts +112 -18
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.js +208 -110
- package/dist/components/Accordion/Accordion.stories.d.ts +3 -0
- package/dist/components/Accordion/Accordion.stories.d.ts.map +1 -1
- package/dist/components/Alert/Alert.js +4 -4
- package/dist/components/ButtonArrow/ButtonArrow.stories.d.ts.map +1 -1
- package/dist/components/CardCheckboxAmount/CardCheckboxAmount.d.ts +111 -0
- package/dist/components/CardCheckboxAmount/CardCheckboxAmount.d.ts.map +1 -0
- package/dist/components/CardCheckboxAmount/CardCheckboxAmount.js +115 -0
- package/dist/components/CardCheckboxAmount/CardCheckboxAmount.stories.d.ts +13 -0
- package/dist/components/CardCheckboxAmount/CardCheckboxAmount.stories.d.ts.map +1 -0
- package/dist/components/CardCheckboxAmount/index.d.ts +2 -0
- package/dist/components/CardCheckboxAmount/index.d.ts.map +1 -0
- package/dist/components/Chip/Chip.d.ts.map +1 -1
- package/dist/components/Chip/Chip.js +6 -2
- package/dist/components/Chip/Chip.stories.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.js +10 -2
- package/dist/components/DatePicker/DatePicker.stories.d.ts.map +1 -1
- package/dist/components/DatePickerButton/DatePickerButton.d.ts +97 -0
- package/dist/components/DatePickerButton/DatePickerButton.d.ts.map +1 -0
- package/dist/components/DatePickerButton/DatePickerButton.js +329 -0
- package/dist/components/DatePickerButton/DatePickerButton.stories.d.ts +15 -0
- package/dist/components/DatePickerButton/DatePickerButton.stories.d.ts.map +1 -0
- package/dist/components/DatePickerButton/index.d.ts +2 -0
- package/dist/components/DatePickerButton/index.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Icons/CustomLogos.d.ts +18 -2
- package/dist/components/Icons/CustomLogos.d.ts.map +1 -1
- package/dist/components/Icons/CustomLogos.js +103 -97
- package/dist/components/Icons/LogosAndBadges.stories.d.ts +1 -0
- package/dist/components/Icons/LogosAndBadges.stories.d.ts.map +1 -1
- package/dist/components/LanguageSwitcher/LanguageSwitcher.d.ts +26 -1
- package/dist/components/LanguageSwitcher/LanguageSwitcher.d.ts.map +1 -1
- package/dist/components/LanguageSwitcher/LanguageSwitcher.js +86 -44
- package/dist/components/LanguageSwitcher/LanguageSwitcher.stories.d.ts +1 -0
- package/dist/components/LanguageSwitcher/LanguageSwitcher.stories.d.ts.map +1 -1
- package/dist/components/Popover/Popover.d.ts +8 -1
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Popover/Popover.js +7 -6
- package/dist/components/SegmentedControl/SegmentedControl.stories.d.ts.map +1 -1
- package/dist/components/SegmentedIconControl/SegmentedIconControl.stories.d.ts.map +1 -1
- package/dist/components/TextEditor/TextEditor.d.ts.map +1 -1
- package/dist/components/TextEditor/TextEditor.js +12 -9
- package/dist/components/TextEditor/TextEditor.stories.d.ts.map +1 -1
- package/dist/components/Toggle/Toggle.stories.d.ts.map +1 -1
- package/dist/components/ToggleCheckButton/ToggleCheckButton.stories.d.ts.map +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts.map +1 -1
- package/dist/components/Typography/Typography.d.ts +10 -1
- package/dist/components/Typography/Typography.d.ts.map +1 -1
- package/dist/components/Typography/Typography.js +82 -67
- package/dist/components/Typography/Typography.stories.d.ts +1 -0
- package/dist/components/Typography/Typography.stories.d.ts.map +1 -1
- package/dist/components/TypographyLink/TypographyLink.d.ts +72 -0
- package/dist/components/TypographyLink/TypographyLink.d.ts.map +1 -0
- package/dist/components/TypographyLink/TypographyLink.js +103 -0
- package/dist/components/TypographyLink/TypographyLink.stories.d.ts +12 -0
- package/dist/components/TypographyLink/TypographyLink.stories.d.ts.map +1 -0
- package/dist/components/TypographyLink/index.d.ts +2 -0
- package/dist/components/TypographyLink/index.d.ts.map +1 -0
- package/dist/components/UniversalFooter/UniversalFooter.d.ts +198 -0
- package/dist/components/UniversalFooter/UniversalFooter.d.ts.map +1 -0
- package/dist/components/UniversalFooter/UniversalFooter.js +401 -0
- package/dist/components/UniversalFooter/UniversalFooter.stories.d.ts +19 -0
- package/dist/components/UniversalFooter/UniversalFooter.stories.d.ts.map +1 -0
- package/dist/components/UniversalFooter/index.d.ts +2 -0
- package/dist/components/UniversalFooter/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.js +353 -322
- package/dist/muza-ui.css +1 -1
- package/dist/styles/primitives.css +2 -0
- package/dist/styles/token-colors.css +51 -43
- package/dist/styles/token-sizes.css +40 -0
- package/dist/translations/index.d.ts +1 -1
- package/dist/translations/index.d.ts.map +1 -1
- package/dist/translations/locales/cs.d.ts.map +1 -1
- package/dist/translations/locales/cs.js +6 -1
- package/dist/translations/locales/en.d.ts.map +1 -1
- package/dist/translations/locales/en.js +6 -1
- package/dist/translations/locales/sk.d.ts.map +1 -1
- package/dist/translations/locales/sk.js +6 -1
- package/dist/translations/types.d.ts +12 -0
- package/dist/translations/types.d.ts.map +1 -1
- package/package.json +171 -169
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AccordionMultipleProps as RadixAccordionMultipleProps, AccordionSingleProps as RadixAccordionSingleProps } from '@radix-ui/react-accordion';
|
|
2
|
+
import { TypographyProps } from '../Typography';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
4
5
|
/**
|
|
@@ -6,8 +7,9 @@ import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
|
6
7
|
* - `'default'` — outlined border, neutral background
|
|
7
8
|
* - `'branded'` — brand-colored fill, no border
|
|
8
9
|
* - `'settings'` — white background with light border, for admin/config panels
|
|
10
|
+
* - `'inline'` — borderless except for a bottom divider, for stacked list-style sections
|
|
9
11
|
*/
|
|
10
|
-
export type AccordionVariant = 'default' | 'branded' | 'settings';
|
|
12
|
+
export type AccordionVariant = 'default' | 'branded' | 'settings' | 'inline';
|
|
11
13
|
/** Props for single mode — only one item can be open at a time. */
|
|
12
14
|
export interface AccordionSingleProps extends RadixAccordionSingleProps {
|
|
13
15
|
/** Single mode — only one item can be open at a time. */
|
|
@@ -72,18 +74,18 @@ export interface AccordionItemProps extends React.ComponentProps<typeof Accordio
|
|
|
72
74
|
/** Prevents interaction with this specific item. @default false */
|
|
73
75
|
disabled?: boolean;
|
|
74
76
|
/**
|
|
75
|
-
* When true, clicking anywhere on the item (not just the header)
|
|
76
|
-
*
|
|
77
|
-
*
|
|
77
|
+
* When true, clicking anywhere on the item (not just the header trigger)
|
|
78
|
+
* toggles the open state. Opt-in because interactive content inside
|
|
79
|
+
* `AccordionContent` (forms, inputs, switches, buttons) would otherwise
|
|
80
|
+
* bubble clicks up and silently collapse the section. Safe to enable for
|
|
81
|
+
* items whose content is purely informational text.
|
|
78
82
|
*
|
|
79
|
-
* @default
|
|
83
|
+
* @default false
|
|
80
84
|
* @example
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* <
|
|
84
|
-
*
|
|
85
|
-
* <Switch />
|
|
86
|
-
* </AccordionContent>
|
|
85
|
+
* // Pure-text content — enable for a larger click target
|
|
86
|
+
* <AccordionItem value="faq" clickableContent>
|
|
87
|
+
* <AccordionHeader>Question</AccordionHeader>
|
|
88
|
+
* <AccordionContent>Answer text</AccordionContent>
|
|
87
89
|
* </AccordionItem>
|
|
88
90
|
*/
|
|
89
91
|
clickableContent?: boolean;
|
|
@@ -105,26 +107,118 @@ export interface AccordionItemProps extends React.ComponentProps<typeof Accordio
|
|
|
105
107
|
* Props for the AccordionHeader component.
|
|
106
108
|
* Renders the clickable header area that toggles content visibility.
|
|
107
109
|
* Wraps and behaves as Radix's `Accordion.Header` + `Accordion.Trigger`.
|
|
110
|
+
*
|
|
111
|
+
* Extends `HTMLAttributes<HTMLDivElement>` rather than Radix's Header props
|
|
112
|
+
* so that Radix-specific props (e.g. `asChild`) don't leak onto a plain
|
|
113
|
+
* `<div>` in the static-item branch of the implementation.
|
|
108
114
|
*/
|
|
109
|
-
export
|
|
115
|
+
export interface AccordionHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
116
|
+
/**
|
|
117
|
+
* Action node rendered as a sibling of the trigger inside the header. Stays
|
|
118
|
+
* visible regardless of the open state and is independently clickable —
|
|
119
|
+
* useful for buttons, icon controls, or status indicators that should not
|
|
120
|
+
* toggle the accordion when activated.
|
|
121
|
+
*
|
|
122
|
+
* Place interactive elements here instead of inside the trigger to avoid
|
|
123
|
+
* nested `<button>` elements.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* <AccordionHeader headerActions={<Button size="xs" onClick={handleEdit}>Edit</Button>}>
|
|
127
|
+
* Section title
|
|
128
|
+
* </AccordionHeader>
|
|
129
|
+
*/
|
|
130
|
+
headerActions?: React.ReactNode;
|
|
131
|
+
}
|
|
110
132
|
/**
|
|
111
133
|
* Props for the AccordionContent component.
|
|
112
134
|
* Collapsible content area with built-in slide-up/slide-down animation.
|
|
113
135
|
* Wraps Radix's `Accordion.Content`.
|
|
114
136
|
*/
|
|
115
137
|
export type AccordionContentProps = React.ComponentProps<typeof AccordionPrimitive.Content>;
|
|
138
|
+
/**
|
|
139
|
+
* Props for the AccordionFooter component.
|
|
140
|
+
*
|
|
141
|
+
* Renders below the content but stays visible regardless of the open state.
|
|
142
|
+
* Use for actions (buttons, links) that should be reachable even when the
|
|
143
|
+
* accordion is collapsed. Clicks inside the footer do not propagate to the
|
|
144
|
+
* trigger, so the accordion does not toggle when the footer is activated.
|
|
145
|
+
*/
|
|
146
|
+
export type AccordionFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
147
|
+
/**
|
|
148
|
+
* Props for the AccordionTitle component.
|
|
149
|
+
*
|
|
150
|
+
* Standardized title slot inside an `AccordionHeader`. Owns the hover
|
|
151
|
+
* highlight (via `group-hover`) so that hovering the trigger re-colors only
|
|
152
|
+
* the title, not every text node in the header.
|
|
153
|
+
*
|
|
154
|
+
* Wraps {@link Typography} — accepts the same `variant`, `weight`, `size`,
|
|
155
|
+
* `component`, and `fixY` props. Defaults are tuned for accordion titles:
|
|
156
|
+
* - `component` defaults to `'span'`
|
|
157
|
+
* - `variant` defaults to `'title'`
|
|
158
|
+
* - `weight` defaults to `'medium'`
|
|
159
|
+
* - `size` defaults to `'base'`
|
|
160
|
+
* - `fixY` defaults to `true`
|
|
161
|
+
*
|
|
162
|
+
* @see Typography
|
|
163
|
+
*/
|
|
164
|
+
export type AccordionTitleProps = Omit<TypographyProps, 'component'> & {
|
|
165
|
+
/** HTML element to render. @default 'span' */
|
|
166
|
+
component?: TypographyProps['component'];
|
|
167
|
+
};
|
|
116
168
|
declare const accordionItemVariants: (props?: ({
|
|
117
|
-
variant?: "default" | "branded" | "settings" | null | undefined;
|
|
169
|
+
variant?: "default" | "inline" | "branded" | "settings" | null | undefined;
|
|
118
170
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
119
171
|
declare const accordionTriggerVariants: (props?: ({
|
|
120
|
-
variant?: "default" | "branded" | "settings" | null | undefined;
|
|
172
|
+
variant?: "default" | "inline" | "branded" | "settings" | null | undefined;
|
|
173
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
174
|
+
declare const accordionTitleVariants: (props?: ({
|
|
175
|
+
variant?: "default" | "inline" | "branded" | "settings" | null | undefined;
|
|
121
176
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
122
177
|
declare const accordionContentInnerVariants: (props?: ({
|
|
123
|
-
variant?: "default" | "branded" | "settings" | null | undefined;
|
|
178
|
+
variant?: "default" | "inline" | "branded" | "settings" | null | undefined;
|
|
179
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
180
|
+
declare const accordionFooterVariants: (props?: ({
|
|
181
|
+
variant?: "default" | "inline" | "branded" | "settings" | null | undefined;
|
|
124
182
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
125
183
|
declare const Accordion: ({ className, variant: variantProp, ...props }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
126
|
-
declare const AccordionItem:
|
|
127
|
-
declare const AccordionHeader: ({ className, children, ...props }: AccordionHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
184
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
185
|
+
declare const AccordionHeader: ({ className, children, headerActions, ...props }: AccordionHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
128
186
|
declare const AccordionContent: ({ className, children, ...props }: AccordionContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
129
|
-
|
|
187
|
+
/**
|
|
188
|
+
* Standardized title slot for `AccordionHeader`. Owns the hover highlight via
|
|
189
|
+
* `group-hover` so only the title re-colors on hover — sibling text in the
|
|
190
|
+
* header (subtitles, badge labels) keeps its own color. Wraps `Typography`.
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* <AccordionHeader>
|
|
194
|
+
* <AccordionTitle>Personal info</AccordionTitle>
|
|
195
|
+
* </AccordionHeader>
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* // With a subtitle that stays its own color on hover:
|
|
199
|
+
* <AccordionHeader>
|
|
200
|
+
* <div className="flex flex-col">
|
|
201
|
+
* <AccordionTitle>Bookings</AccordionTitle>
|
|
202
|
+
* <Typography size="sm" className="text-text-dark-secondary">3 upcoming</Typography>
|
|
203
|
+
* </div>
|
|
204
|
+
* </AccordionHeader>
|
|
205
|
+
*/
|
|
206
|
+
declare const AccordionTitle: ({ className, component, variant: typographyVariant, weight, size, fixY, ...props }: AccordionTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
207
|
+
/**
|
|
208
|
+
* Renders below the content but stays visible regardless of the open state.
|
|
209
|
+
* Use for actions (buttons, links) that should be reachable even when the
|
|
210
|
+
* accordion is collapsed. Clicks inside the footer do not propagate to the
|
|
211
|
+
* trigger.
|
|
212
|
+
*
|
|
213
|
+
* @example
|
|
214
|
+
* <AccordionItem value="item-1">
|
|
215
|
+
* <AccordionHeader>Section title</AccordionHeader>
|
|
216
|
+
* <AccordionContent>...</AccordionContent>
|
|
217
|
+
* <AccordionFooter>
|
|
218
|
+
* <Button fullWidth onClick={save}>Save</Button>
|
|
219
|
+
* </AccordionFooter>
|
|
220
|
+
* </AccordionItem>
|
|
221
|
+
*/
|
|
222
|
+
declare const AccordionFooter: ({ className, children, onClick, ...props }: AccordionFooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
223
|
+
export { Accordion, AccordionContent, AccordionFooter, AccordionHeader, AccordionItem, AccordionTitle, accordionItemVariants, accordionTriggerVariants, accordionContentInnerVariants, accordionFooterVariants, accordionTitleVariants, };
|
|
130
224
|
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EACL,KAAK,sBAAsB,IAAI,2BAA2B,EAC1D,KAAK,oBAAoB,IAAI,yBAAyB,EACvD,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,168 +1,266 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
1
|
+
import { jsx as a, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import * as m from "@radix-ui/react-accordion";
|
|
4
4
|
import { cva as u } from "class-variance-authority";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
5
|
+
import { Typography as I } from "../Typography/Typography.js";
|
|
6
|
+
import { cn as n } from "../../utils/cn.js";
|
|
7
|
+
import { AltArrowDownOutline as P } from "@solar-icons/react-perf";
|
|
8
|
+
const N = u("relative w-full transition-colors", {
|
|
8
9
|
variants: {
|
|
9
10
|
variant: {
|
|
10
11
|
default: "rounded-comp-accordion-default-radius border border-stroke-base-primary bg-surface-base-secondary px-comp-accordion-default-p py-comp-accordion-default-p-ver has-[[data-slot=accordion-trigger]:hover]:border-stroke-brand-hover",
|
|
11
12
|
branded: "rounded-comp-accordion-branded-radius border-0 bg-surface-brand-brand-tertiary p-comp-accordion-branded-p has-[[data-slot=accordion-trigger]:hover]:bg-surface-base-primary-hover",
|
|
12
|
-
settings: "rounded-comp-accordion-settings-radius border border-comp-accordion-settings-stroke-def bg-comp-accordion-settings-bg-primary-def has-[[data-slot=accordion-trigger]:disabled]:cursor-not-allowed has-[[data-slot=accordion-trigger]:disabled]:border-comp-accordion-settings-stroke-disabled has-[[data-slot=accordion-trigger]:disabled]:bg-comp-accordion-settings-bg-primary-disabled has-[[data-slot=accordion-trigger]:focus-visible]:border-comp-accordion-settings-stroke-focused has-[[data-slot=accordion-trigger]:focus-visible]:bg-comp-accordion-settings-bg-primary-focused has-[[data-slot=accordion-trigger]:hover:not(:disabled)]:border-comp-accordion-settings-stroke-hover has-[[data-slot=accordion-trigger]:hover:not(:disabled)]:bg-comp-accordion-settings-bg-primary-hover"
|
|
13
|
+
settings: "rounded-comp-accordion-settings-radius border border-comp-accordion-settings-stroke-def bg-comp-accordion-settings-bg-primary-def has-[[data-slot=accordion-trigger]:disabled]:cursor-not-allowed has-[[data-slot=accordion-trigger]:disabled]:border-comp-accordion-settings-stroke-disabled has-[[data-slot=accordion-trigger]:disabled]:bg-comp-accordion-settings-bg-primary-disabled has-[[data-slot=accordion-trigger]:focus-visible]:border-comp-accordion-settings-stroke-focused has-[[data-slot=accordion-trigger]:focus-visible]:bg-comp-accordion-settings-bg-primary-focused has-[[data-slot=accordion-trigger]:hover:not(:disabled)]:border-comp-accordion-settings-stroke-hover has-[[data-slot=accordion-trigger]:hover:not(:disabled)]:bg-comp-accordion-settings-bg-primary-hover",
|
|
14
|
+
inline: "rounded-none border-x-0 border-t-0 border-b border-comp-accordion-inline-stroke-def bg-transparent has-[[data-slot=accordion-trigger]:disabled]:border-comp-accordion-inline-stroke-disabled has-[[data-slot=accordion-trigger]:focus-visible]:border-comp-accordion-inline-stroke-focused has-[[data-slot=accordion-trigger]:hover:not(:disabled)]:border-comp-accordion-inline-stroke-hover"
|
|
13
15
|
}
|
|
14
16
|
},
|
|
15
17
|
defaultVariants: { variant: "default" }
|
|
16
|
-
}),
|
|
18
|
+
}), A = u(
|
|
17
19
|
"group flex w-full cursor-pointer items-center justify-between gap-4 transition-all outline-none [&[data-state=open]>svg]:rotate-180",
|
|
18
20
|
{
|
|
19
21
|
variants: {
|
|
20
22
|
variant: {
|
|
21
23
|
default: "text-text-dark-primary-def focus-visible-default data-[state=open]:text-text-brand-def",
|
|
22
24
|
branded: "text-text-brand-def focus-visible-default data-[state=open]:text-text-brand-hover",
|
|
23
|
-
settings: "gap-comp-accordion-settings-gap p-comp-accordion-settings-p text-text-dark-primary-def data-[disabled]:text-text-dark-disabled"
|
|
25
|
+
settings: "gap-comp-accordion-settings-gap p-comp-accordion-settings-p text-text-dark-primary-def data-[disabled]:text-text-dark-disabled",
|
|
26
|
+
inline: "gap-comp-accordion-inline-gap px-comp-accordion-inline-p-hor py-comp-accordion-inline-p-ver text-text-dark-primary-def data-[disabled]:text-text-dark-disabled"
|
|
24
27
|
}
|
|
25
28
|
},
|
|
26
29
|
defaultVariants: { variant: "default" }
|
|
27
30
|
}
|
|
28
|
-
),
|
|
31
|
+
), S = u("text-inherit transition-colors", {
|
|
32
|
+
variants: {
|
|
33
|
+
variant: {
|
|
34
|
+
default: "group-hover:text-text-brand-hover",
|
|
35
|
+
branded: "group-hover:text-text-brand-hover",
|
|
36
|
+
settings: "group-hover:text-text-brand-hover group-data-[disabled]:text-text-dark-disabled",
|
|
37
|
+
inline: "group-hover:text-text-brand-hover group-data-[disabled]:text-text-dark-disabled"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
defaultVariants: { variant: "default" }
|
|
41
|
+
}), V = u("text-left", {
|
|
29
42
|
variants: {
|
|
30
43
|
variant: {
|
|
31
44
|
default: "pt-md",
|
|
32
45
|
branded: "pt-2xl text-text-brand-def",
|
|
33
|
-
settings: "p-comp-accordion-settings-p pt-comp-accordion-settings-p-top"
|
|
46
|
+
settings: "p-comp-accordion-settings-p pt-comp-accordion-settings-p-top",
|
|
47
|
+
inline: "px-comp-accordion-inline-p-hor pb-comp-accordion-inline-p-ver"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
defaultVariants: { variant: "default" }
|
|
51
|
+
}), T = u("text-left", {
|
|
52
|
+
variants: {
|
|
53
|
+
variant: {
|
|
54
|
+
default: "pt-2xl",
|
|
55
|
+
branded: "pt-2xl",
|
|
56
|
+
settings: "p-comp-accordion-settings-p pt-comp-accordion-settings-p-top",
|
|
57
|
+
inline: "px-comp-accordion-inline-p-hor pb-comp-accordion-inline-p-ver"
|
|
34
58
|
}
|
|
35
59
|
},
|
|
36
60
|
defaultVariants: { variant: "default" }
|
|
37
|
-
}),
|
|
61
|
+
}), C = l.createContext({
|
|
38
62
|
variant: "default"
|
|
39
|
-
}),
|
|
63
|
+
}), g = () => l.useContext(C), v = l.createContext({
|
|
40
64
|
isStatic: !1
|
|
41
|
-
}),
|
|
65
|
+
}), w = () => l.useContext(v), D = ({
|
|
42
66
|
className: o,
|
|
43
67
|
variant: r,
|
|
44
|
-
...
|
|
68
|
+
...t
|
|
45
69
|
}) => {
|
|
46
|
-
const e = r ?? (
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
|
|
70
|
+
const e = r ?? (t.type === "single" ? "branded" : "default");
|
|
71
|
+
return /* @__PURE__ */ a(C.Provider, { value: { variant: e }, children: /* @__PURE__ */ a(
|
|
72
|
+
m.Root,
|
|
49
73
|
{
|
|
50
74
|
"data-slot": "accordion",
|
|
51
|
-
className:
|
|
52
|
-
...
|
|
75
|
+
className: n("flex w-full flex-col gap-md", o),
|
|
76
|
+
...t
|
|
53
77
|
}
|
|
54
78
|
) });
|
|
55
|
-
},
|
|
79
|
+
}, z = l.forwardRef(
|
|
80
|
+
({
|
|
81
|
+
className: o,
|
|
82
|
+
children: r,
|
|
83
|
+
clickableContent: t = !1,
|
|
84
|
+
static: e,
|
|
85
|
+
value: i,
|
|
86
|
+
disabled: d,
|
|
87
|
+
...c
|
|
88
|
+
}, s) => {
|
|
89
|
+
const { variant: x } = g(), h = l.useRef(null), k = (p) => {
|
|
90
|
+
h.current = p, typeof s == "function" ? s(p) : s && (s.current = p);
|
|
91
|
+
};
|
|
92
|
+
return e ? /* @__PURE__ */ a(v.Provider, { value: { isStatic: !0 }, children: /* @__PURE__ */ a(
|
|
93
|
+
"div",
|
|
94
|
+
{
|
|
95
|
+
ref: k,
|
|
96
|
+
"data-slot": "accordion-item",
|
|
97
|
+
"data-state": "open",
|
|
98
|
+
className: n(N({ variant: x }), o),
|
|
99
|
+
...c,
|
|
100
|
+
children: r
|
|
101
|
+
}
|
|
102
|
+
) }) : /* @__PURE__ */ a(v.Provider, { value: { isStatic: !1 }, children: /* @__PURE__ */ a(
|
|
103
|
+
m.Item,
|
|
104
|
+
{
|
|
105
|
+
ref: k,
|
|
106
|
+
"data-slot": "accordion-item",
|
|
107
|
+
value: i,
|
|
108
|
+
disabled: d,
|
|
109
|
+
className: n(
|
|
110
|
+
N({ variant: x }),
|
|
111
|
+
t && "cursor-pointer",
|
|
112
|
+
o
|
|
113
|
+
),
|
|
114
|
+
onClick: t ? (p) => {
|
|
115
|
+
var y;
|
|
116
|
+
const b = (y = h.current) == null ? void 0 : y.querySelector(
|
|
117
|
+
'[data-slot="accordion-trigger"]'
|
|
118
|
+
);
|
|
119
|
+
b && !b.contains(p.target) && b.click();
|
|
120
|
+
} : void 0,
|
|
121
|
+
...c,
|
|
122
|
+
children: r
|
|
123
|
+
}
|
|
124
|
+
) });
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
z.displayName = "AccordionItem";
|
|
128
|
+
const O = ({
|
|
56
129
|
className: o,
|
|
57
130
|
children: r,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
value: d,
|
|
61
|
-
disabled: A,
|
|
62
|
-
...g
|
|
131
|
+
headerActions: t,
|
|
132
|
+
...e
|
|
63
133
|
}) => {
|
|
64
|
-
const { variant:
|
|
65
|
-
return
|
|
134
|
+
const { variant: i } = g(), { isStatic: d } = w();
|
|
135
|
+
return d ? /* @__PURE__ */ f("div", { className: "flex items-center", ...e, children: [
|
|
136
|
+
/* @__PURE__ */ a(
|
|
137
|
+
"div",
|
|
138
|
+
{
|
|
139
|
+
className: n(
|
|
140
|
+
A({ variant: i }),
|
|
141
|
+
"cursor-default",
|
|
142
|
+
o
|
|
143
|
+
),
|
|
144
|
+
children: r
|
|
145
|
+
}
|
|
146
|
+
),
|
|
147
|
+
t && /* @__PURE__ */ a(
|
|
148
|
+
"div",
|
|
149
|
+
{
|
|
150
|
+
className: "flex shrink-0 items-center",
|
|
151
|
+
onClick: (c) => c.stopPropagation(),
|
|
152
|
+
children: t
|
|
153
|
+
}
|
|
154
|
+
)
|
|
155
|
+
] }) : /* @__PURE__ */ f(m.Header, { className: "flex items-center", ...e, children: [
|
|
156
|
+
/* @__PURE__ */ f(
|
|
157
|
+
m.Trigger,
|
|
158
|
+
{
|
|
159
|
+
"data-slot": "accordion-trigger",
|
|
160
|
+
className: n(A({ variant: i }), o),
|
|
161
|
+
children: [
|
|
162
|
+
r,
|
|
163
|
+
/* @__PURE__ */ a(
|
|
164
|
+
P,
|
|
165
|
+
{
|
|
166
|
+
className: n(
|
|
167
|
+
"shrink-0 text-comp-select-icon-brand-def transition-transform duration-300 group-data-[disabled]:text-icon-dark-tertiary",
|
|
168
|
+
i === "branded" ? "size-comp-accordion-branded-ico-size-md" : "size-comp-accordion-default-ico-size-md"
|
|
169
|
+
)
|
|
170
|
+
}
|
|
171
|
+
)
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
),
|
|
175
|
+
t && /* @__PURE__ */ a(
|
|
176
|
+
"div",
|
|
177
|
+
{
|
|
178
|
+
className: "flex shrink-0 items-center",
|
|
179
|
+
onClick: (c) => c.stopPropagation(),
|
|
180
|
+
children: t
|
|
181
|
+
}
|
|
182
|
+
)
|
|
183
|
+
] });
|
|
184
|
+
}, B = ({
|
|
185
|
+
className: o,
|
|
186
|
+
children: r,
|
|
187
|
+
...t
|
|
188
|
+
}) => {
|
|
189
|
+
const { variant: e } = g(), { isStatic: i } = w();
|
|
190
|
+
return i ? /* @__PURE__ */ a("div", { "data-slot": "accordion-content", ...t, children: /* @__PURE__ */ a(
|
|
66
191
|
"div",
|
|
67
192
|
{
|
|
68
|
-
|
|
69
|
-
"data-state": "open",
|
|
70
|
-
className: i(v({ variant: f }), o),
|
|
71
|
-
...g,
|
|
193
|
+
className: n(V({ variant: e }), o),
|
|
72
194
|
children: r
|
|
73
195
|
}
|
|
74
|
-
) }) : /* @__PURE__ */
|
|
75
|
-
|
|
196
|
+
) }) : /* @__PURE__ */ a(
|
|
197
|
+
m.Content,
|
|
76
198
|
{
|
|
77
|
-
|
|
78
|
-
"data-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
var b;
|
|
88
|
-
const s = (b = p.current) == null ? void 0 : b.querySelector(
|
|
89
|
-
'[data-slot="accordion-trigger"]'
|
|
90
|
-
);
|
|
91
|
-
s && !s.contains(C.target) && s.click();
|
|
92
|
-
} : void 0,
|
|
93
|
-
...g,
|
|
94
|
-
children: r
|
|
199
|
+
"data-slot": "accordion-content",
|
|
200
|
+
className: "overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
201
|
+
...t,
|
|
202
|
+
children: /* @__PURE__ */ a(
|
|
203
|
+
"div",
|
|
204
|
+
{
|
|
205
|
+
className: n(V({ variant: e }), o),
|
|
206
|
+
children: r
|
|
207
|
+
}
|
|
208
|
+
)
|
|
95
209
|
}
|
|
96
|
-
)
|
|
97
|
-
},
|
|
210
|
+
);
|
|
211
|
+
}, E = ({
|
|
98
212
|
className: o,
|
|
99
|
-
|
|
100
|
-
|
|
213
|
+
component: r = "span",
|
|
214
|
+
variant: t = "title",
|
|
215
|
+
weight: e = "medium",
|
|
216
|
+
size: i = "base",
|
|
217
|
+
fixY: d = !0,
|
|
218
|
+
...c
|
|
101
219
|
}) => {
|
|
102
|
-
const { variant:
|
|
103
|
-
return
|
|
104
|
-
|
|
105
|
-
{
|
|
106
|
-
className: i(
|
|
107
|
-
x({ variant: e }),
|
|
108
|
-
"cursor-default",
|
|
109
|
-
o
|
|
110
|
-
),
|
|
111
|
-
children: r
|
|
112
|
-
}
|
|
113
|
-
) }) : /* @__PURE__ */ t(n.Header, { className: "flex", ...a, children: /* @__PURE__ */ w(
|
|
114
|
-
n.Trigger,
|
|
220
|
+
const { variant: s } = g();
|
|
221
|
+
return /* @__PURE__ */ a(
|
|
222
|
+
I,
|
|
115
223
|
{
|
|
116
|
-
"data-slot": "accordion-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
"shrink-0 text-comp-select-icon-brand-def transition-transform duration-300 group-data-[disabled]:text-icon-dark-tertiary",
|
|
125
|
-
e === "branded" ? "size-comp-accordion-branded-ico-size-md" : "size-comp-accordion-default-ico-size-md"
|
|
126
|
-
)
|
|
127
|
-
}
|
|
128
|
-
)
|
|
129
|
-
]
|
|
224
|
+
"data-slot": "accordion-title",
|
|
225
|
+
component: r,
|
|
226
|
+
variant: t,
|
|
227
|
+
weight: e,
|
|
228
|
+
size: i,
|
|
229
|
+
fixY: d,
|
|
230
|
+
className: n(S({ variant: s }), o),
|
|
231
|
+
...c
|
|
130
232
|
}
|
|
131
|
-
)
|
|
132
|
-
},
|
|
233
|
+
);
|
|
234
|
+
}, G = ({
|
|
133
235
|
className: o,
|
|
134
236
|
children: r,
|
|
135
|
-
|
|
237
|
+
onClick: t,
|
|
238
|
+
...e
|
|
136
239
|
}) => {
|
|
137
|
-
const { variant:
|
|
138
|
-
return
|
|
240
|
+
const { variant: i } = g();
|
|
241
|
+
return /* @__PURE__ */ a(
|
|
139
242
|
"div",
|
|
140
243
|
{
|
|
141
|
-
|
|
244
|
+
"data-slot": "accordion-footer",
|
|
245
|
+
className: n(T({ variant: i }), o),
|
|
246
|
+
onClick: (d) => {
|
|
247
|
+
t == null || t(d), d.stopPropagation();
|
|
248
|
+
},
|
|
249
|
+
...e,
|
|
142
250
|
children: r
|
|
143
251
|
}
|
|
144
|
-
) }) : /* @__PURE__ */ t(
|
|
145
|
-
n.Content,
|
|
146
|
-
{
|
|
147
|
-
"data-slot": "accordion-content",
|
|
148
|
-
className: "overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
149
|
-
...a,
|
|
150
|
-
children: /* @__PURE__ */ t(
|
|
151
|
-
"div",
|
|
152
|
-
{
|
|
153
|
-
className: i(h({ variant: e }), o),
|
|
154
|
-
children: r
|
|
155
|
-
}
|
|
156
|
-
)
|
|
157
|
-
}
|
|
158
252
|
);
|
|
159
253
|
};
|
|
160
254
|
export {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
255
|
+
D as Accordion,
|
|
256
|
+
B as AccordionContent,
|
|
257
|
+
G as AccordionFooter,
|
|
258
|
+
O as AccordionHeader,
|
|
259
|
+
z as AccordionItem,
|
|
260
|
+
E as AccordionTitle,
|
|
261
|
+
V as accordionContentInnerVariants,
|
|
262
|
+
T as accordionFooterVariants,
|
|
263
|
+
N as accordionItemVariants,
|
|
264
|
+
S as accordionTitleVariants,
|
|
265
|
+
A as accordionTriggerVariants
|
|
168
266
|
};
|
|
@@ -8,6 +8,9 @@ export declare const Single: Story;
|
|
|
8
8
|
export declare const Multiple: Story;
|
|
9
9
|
export declare const Settings: Story;
|
|
10
10
|
export declare const Static: Story;
|
|
11
|
+
export declare const ClickableContent: Story;
|
|
12
|
+
export declare const Inline: Story;
|
|
13
|
+
export declare const WithFooter: Story;
|
|
11
14
|
export declare const AllVariants: Story;
|
|
12
15
|
type PlaygroundProps = {
|
|
13
16
|
headline1: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"Accordion.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAgB3D,OAAO,EACL,SAAS,EAOV,MAAM,aAAa,CAAA;AAEpB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CA6EhC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAA;AAEvC,eAAO,MAAM,OAAO,EAAE,KAsDrB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAmEpB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAiCtB,CAAA;AAqVD,eAAO,MAAM,QAAQ,EAAE,KAetB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KA0EpB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAoJ9B,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAmGpB,CAAA;AAsDD,eAAO,MAAM,UAAU,EAAE,KAWxB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAkPzB,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,eAAe,CA4DxD,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,eAAe,CAyEtD,CAAA"}
|
|
@@ -2,8 +2,8 @@ import { jsxs as x, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { cva as b } from "class-variance-authority";
|
|
4
4
|
import { XClose as y } from "../Icons/CustomIcons.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { cn as h } from "../../utils/cn.js";
|
|
6
|
+
import { Typography as v } from "../Typography/Typography.js";
|
|
7
7
|
const w = b(["rounded-2xl"], {
|
|
8
8
|
variants: {
|
|
9
9
|
type: {
|
|
@@ -41,7 +41,7 @@ const w = b(["rounded-2xl"], {
|
|
|
41
41
|
{
|
|
42
42
|
"data-slot": "alert",
|
|
43
43
|
role: "alert",
|
|
44
|
-
className:
|
|
44
|
+
className: h(
|
|
45
45
|
w({ type: i, size: t }),
|
|
46
46
|
s,
|
|
47
47
|
"flex w-fit items-center gap-sm",
|
|
@@ -51,7 +51,7 @@ const w = b(["rounded-2xl"], {
|
|
|
51
51
|
...p,
|
|
52
52
|
children: [
|
|
53
53
|
/* @__PURE__ */ r(
|
|
54
|
-
|
|
54
|
+
v,
|
|
55
55
|
{
|
|
56
56
|
component: "span",
|
|
57
57
|
variant: "body",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonArrow.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonArrow/ButtonArrow.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAG3D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B0B,CAAA;AAEpC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"ButtonArrow.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonArrow/ButtonArrow.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAG3D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B0B,CAAA;AAEpC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAiEzB,CAAA"}
|