@wonderflow/react-components 10.20.0 → 11.0.1
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/core/basic.css +1 -1
- package/core.css +1 -1
- package/dist/components/accordion/accordion.test.js +0 -15
- package/dist/components/aspect-ratio/aspect-ratio.test.js +0 -15
- package/dist/components/autocomplete/autocomplete.d.ts +4 -0
- package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/components/autocomplete/autocomplete.js +2 -4
- package/dist/components/autocomplete/autocomplete.module.css +1 -1
- package/dist/components/autocomplete/autocomplete.test.js +0 -15
- package/dist/components/avatar/avatar.module.css +1 -1
- package/dist/components/avatar/avatar.test.js +0 -15
- package/dist/components/button/button.d.ts +1 -2
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.module.css +1 -1
- package/dist/components/button/button.stories.d.ts +4 -4
- package/dist/components/button/button.stories.d.ts.map +1 -1
- package/dist/components/button/button.test.js +0 -15
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/card.js +1 -1
- package/dist/components/card/card.module.css +1 -1
- package/dist/components/card/card.test.js +0 -15
- package/dist/components/chip/chip.module.css +1 -1
- package/dist/components/chip/chip.test.js +0 -15
- package/dist/components/circular-progress/circular-progress.test.js +0 -15
- package/dist/components/clamp-text/clamp-text.test.js +0 -15
- package/dist/components/container/container.d.ts +1 -1
- package/dist/components/container/container.d.ts.map +1 -1
- package/dist/components/container/container.module.css +1 -1
- package/dist/components/container/container.stories.d.ts +4 -5
- package/dist/components/container/container.stories.d.ts.map +1 -1
- package/dist/components/container/container.stories.js +11 -14
- package/dist/components/container/container.test.js +0 -15
- package/dist/components/datetime/datetime.test.js +0 -15
- package/dist/components/disclosure/disclosure.module.css +1 -1
- package/dist/components/disclosure/disclosure.test.d.ts.map +1 -1
- package/dist/components/disclosure/disclosure.test.js +0 -15
- package/dist/components/elevator/elevator.test.js +0 -15
- package/dist/components/expander/expander.test.js +0 -15
- package/dist/components/grid/grid.test.js +0 -15
- package/dist/components/info-state/info-state.d.ts.map +1 -1
- package/dist/components/info-state/info-state.js +1 -9
- package/dist/components/info-state/info-state.module.css +1 -1
- package/dist/components/info-state/info-state.stories.d.ts +31 -31
- package/dist/components/info-state/info-state.stories.d.ts.map +1 -1
- package/dist/components/info-state/info-state.stories.js +5 -5
- package/dist/components/info-state/info-state.test.js +0 -15
- package/dist/components/input-group/input-group.test.js +0 -15
- package/dist/components/linear-progress/linear-progress.module.css +1 -1
- package/dist/components/linear-progress/linear-progress.test.js +0 -15
- package/dist/components/list/list.module.css +1 -1
- package/dist/components/list/list.test.js +0 -15
- package/dist/components/masonry/masonry.test.js +0 -15
- package/dist/components/menu/menu-item/menu-item.d.ts.map +1 -1
- package/dist/components/menu/menu-item/menu-item.js +3 -1
- package/dist/components/menu/menu-item/menu-item.module.css +1 -1
- package/dist/components/menu/menu-item/menu-item.stories.d.ts.map +1 -1
- package/dist/components/menu/menu-item/menu-item.stories.js +1 -0
- package/dist/components/menu/menu.test.js +0 -15
- package/dist/components/modal/content/modal-content.d.ts +7 -8
- package/dist/components/modal/content/modal-content.d.ts.map +1 -1
- package/dist/components/modal/content/modal-content.js +3 -7
- package/dist/components/modal/content/modal-content.module.css +1 -1
- package/dist/components/modal/footer/modal-footer.d.ts +32 -0
- package/dist/components/modal/footer/modal-footer.d.ts.map +1 -0
- package/dist/components/modal/footer/modal-footer.js +22 -0
- package/dist/components/modal/footer/modal-footer.module.css +1 -0
- package/dist/components/modal/header/modal-header.d.ts +20 -0
- package/dist/components/modal/header/modal-header.d.ts.map +1 -0
- package/dist/components/modal/header/modal-header.js +26 -0
- package/dist/components/modal/header/modal-header.module.css +1 -0
- package/dist/components/modal/modal.d.ts +79 -7
- package/dist/components/modal/modal.d.ts.map +1 -1
- package/dist/components/modal/modal.js +16 -6
- package/dist/components/modal/modal.module.css +1 -1
- package/dist/components/modal/modal.stories.d.ts +69 -5
- package/dist/components/modal/modal.stories.d.ts.map +1 -1
- package/dist/components/modal/modal.stories.js +145 -10
- package/dist/components/modal/modal.test.d.ts +2 -0
- package/dist/components/modal/modal.test.d.ts.map +1 -0
- package/dist/components/modal/modal.test.js +60 -0
- package/dist/components/overlay-container/overlay-container.test.d.ts +2 -0
- package/dist/components/overlay-container/overlay-container.test.d.ts.map +1 -0
- package/dist/components/overlay-container/overlay-container.test.js +19 -0
- package/dist/components/pagination/pagination.test.js +0 -15
- package/dist/components/popover/popover.d.ts +4 -0
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/popover/popover.js +6 -8
- package/dist/components/popover/popover.module.css +1 -1
- package/dist/components/popover/popover.stories.d.ts +13 -9
- package/dist/components/popover/popover.stories.d.ts.map +1 -1
- package/dist/components/popover/popover.stories.js +8 -2
- package/dist/components/popover/popover.test.js +0 -15
- package/dist/components/prose/prose.test.js +0 -15
- package/dist/components/select/select.js +1 -1
- package/dist/components/select/select.module.css +1 -1
- package/dist/components/select/select.test.js +0 -15
- package/dist/components/selection-controls/selection-controls.test.js +0 -15
- package/dist/components/separator/separator.test.js +0 -15
- package/dist/components/skeleton/skeleton.test.js +0 -15
- package/dist/components/slider/slider.test.js +0 -15
- package/dist/components/snackbar/snackbar.test.js +0 -15
- package/dist/components/spinner/spinner.test.js +0 -15
- package/dist/components/split-button/split-button.test.js +0 -15
- package/dist/components/stack/stack.test.js +0 -15
- package/dist/components/star-meter/star-meter.module.css +1 -1
- package/dist/components/star-meter/star-meter.test.js +0 -15
- package/dist/components/symbol/symbol.test.js +0 -15
- package/dist/components/tab/tab.js +1 -1
- package/dist/components/tab/tab.module.css +1 -1
- package/dist/components/tab/tab.stories.d.ts +1 -0
- package/dist/components/tab/tab.stories.d.ts.map +1 -1
- package/dist/components/tab/tab.stories.js +4 -17
- package/dist/components/tab/tab.test.js +0 -15
- package/dist/components/table/table-cell/table-cell.test.js +0 -15
- package/dist/components/table/table-checkbox/table-checkbox.test.js +0 -15
- package/dist/components/table/table-controls/table-controls.test.js +0 -15
- package/dist/components/table/table-header/table-header.test.js +0 -15
- package/dist/components/table/table-pagination/table-pagination.test.js +0 -15
- package/dist/components/table/table-row/table-row.test.js +0 -15
- package/dist/components/table/table.module.css +1 -1
- package/dist/components/table/table.stories.d.ts.map +1 -1
- package/dist/components/table/table.stories.js +1 -0
- package/dist/components/table/table.test.js +0 -15
- package/dist/components/text/text.module.css +1 -1
- package/dist/components/text/text.test.js +0 -15
- package/dist/components/textfield/textfield.module.css +1 -1
- package/dist/components/textfield/textfield.test.js +0 -15
- package/dist/components/title/title.module.css +1 -1
- package/dist/components/title/title.test.js +0 -15
- package/dist/components/toggle-button/toggle-button.test.js +0 -15
- package/dist/components/tooltip/tooltip.d.ts +4 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.js +2 -4
- package/dist/components/tooltip/tooltip.module.css +1 -1
- package/dist/components/tooltip/tooltip.stories.d.ts +1 -1
- package/dist/components/tooltip/tooltip.stories.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.stories.js +4 -3
- package/dist/components/tooltip/tooltip.test.js +0 -15
- package/dist/hooks/index.d.ts +3 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +3 -1
- package/dist/hooks/useBreakpoints.d.ts +11 -0
- package/dist/hooks/useBreakpoints.d.ts.map +1 -0
- package/dist/hooks/useBreakpoints.js +84 -0
- package/dist/hooks/useBreakpoints.test.d.ts +2 -0
- package/dist/hooks/useBreakpoints.test.d.ts.map +1 -0
- package/dist/hooks/useBreakpoints.test.js +35 -0
- package/dist/hooks/useBreakpointsConfig.d.ts +12 -0
- package/dist/hooks/useBreakpointsConfig.d.ts.map +1 -0
- package/dist/hooks/useBreakpointsConfig.js +31 -0
- package/dist/hooks/useBreakpointsConfig.test.d.ts +2 -0
- package/dist/hooks/useBreakpointsConfig.test.d.ts.map +1 -0
- package/dist/hooks/useBreakpointsConfig.test.js +16 -0
- package/dist/hooks/useSSR.d.ts +5 -0
- package/dist/hooks/useSSR.d.ts.map +1 -0
- package/dist/hooks/useSSR.js +24 -0
- package/dist/hooks/useSSR.test.d.ts +2 -0
- package/dist/hooks/useSSR.test.d.ts.map +1 -0
- package/dist/hooks/useSSR.test.js +11 -0
- package/dist/providers/providers.test.js +11 -17
- package/package.json +5 -4
- package/dist/hooks/usePopupWrapper.d.ts +0 -4
- package/dist/hooks/usePopupWrapper.d.ts.map +0 -1
- package/dist/hooks/usePopupWrapper.js +0 -42
|
@@ -1,22 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
import { Popover } from './popover';
|
|
4
4
|
declare const story: ComponentMeta<typeof Popover>;
|
|
5
5
|
export default story;
|
|
6
|
-
export declare const Default: ComponentStory<
|
|
6
|
+
export declare const Default: ComponentStory<import("react").ForwardRefExoticComponent<{
|
|
7
7
|
style?: Record<string, any> | undefined;
|
|
8
8
|
className?: string | undefined;
|
|
9
|
-
} & import("./popover").PopoverProps &
|
|
10
|
-
export declare const CustomElement: ComponentStory<
|
|
9
|
+
} & import("./popover").PopoverProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
10
|
+
export declare const CustomElement: ComponentStory<import("react").ForwardRefExoticComponent<{
|
|
11
11
|
style?: Record<string, any> | undefined;
|
|
12
12
|
className?: string | undefined;
|
|
13
|
-
} & import("./popover").PopoverProps &
|
|
14
|
-
export declare const WithField: ComponentStory<
|
|
13
|
+
} & import("./popover").PopoverProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
14
|
+
export declare const WithField: ComponentStory<import("react").ForwardRefExoticComponent<{
|
|
15
15
|
style?: Record<string, any> | undefined;
|
|
16
16
|
className?: string | undefined;
|
|
17
|
-
} & import("./popover").PopoverProps &
|
|
18
|
-
export declare const Controlled: ComponentStory<
|
|
17
|
+
} & import("./popover").PopoverProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
18
|
+
export declare const Controlled: ComponentStory<import("react").ForwardRefExoticComponent<{
|
|
19
19
|
style?: Record<string, any> | undefined;
|
|
20
20
|
className?: string | undefined;
|
|
21
|
-
} & import("./popover").PopoverProps &
|
|
21
|
+
} & import("./popover").PopoverProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
22
|
+
export declare const WithElevator: ComponentStory<import("react").ForwardRefExoticComponent<{
|
|
23
|
+
style?: Record<string, any> | undefined;
|
|
24
|
+
className?: string | undefined;
|
|
25
|
+
} & import("./popover").PopoverProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
22
26
|
//# sourceMappingURL=popover.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.stories.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"popover.stories.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMjE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,QAAA,MAAM,KAAK,EAAE,aAAa,CAAC,OAAO,OAAO,CAgBxC,CAAC;AAEF,eAAe,KAAK,CAAC;AAmCrB,eAAO,MAAM,OAAO;;;sFAA2B,CAAC;AAyBhD,eAAO,MAAM,aAAa;;;sFAA0B,CAAC;AAuBrD,eAAO,MAAM,SAAS;;;sFAA6B,CAAC;AAwCpD,eAAO,MAAM,UAAU;;;sFAA8B,CAAC;AAgBtD,eAAO,MAAM,YAAY;;;sFAAgC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
-
import { Button, Menu, Stack, Textfield,
|
|
3
|
+
import { Button, Card, Elevator, IconButton, Menu, Stack, Textfield, } from '../..';
|
|
4
4
|
import { Popover } from './popover';
|
|
5
5
|
const story = {
|
|
6
6
|
title: 'Dialogs/Popover',
|
|
@@ -22,7 +22,7 @@ const story = {
|
|
|
22
22
|
export default story;
|
|
23
23
|
const DefaultTemplate = (args) => {
|
|
24
24
|
const [isChecked, setIsChecked] = useState(false);
|
|
25
|
-
return (_jsx(Popover, { ...args, children: _jsxs(Menu, { children: [_jsx(Menu.Item, { icon: "arrow-right", description: _jsx(_Fragment, { children: "
|
|
25
|
+
return (_jsx(Popover, { ...args, children: _jsxs(Menu, { children: [_jsx(Menu.Item, { autoFocus: true, icon: "arrow-right", value: "1", description: _jsx(_Fragment, { children: "this is my description" }), children: "Sample long menu item" }), _jsx(Menu.ItemCheckbox, { onClick: () => setIsChecked(val => !val), checked: isChecked, icon: isChecked ? 'check' : undefined, value: "2", children: "Checkbox item" }), _jsx(Menu.Item, { value: "3", icon: "right-from-bracket", children: "Item option 3" }), _jsx(Menu.Separator, {}), _jsx(Menu.Item, { value: "4", icon: "arrow-down-to-bracket", children: "Even shorter" }), _jsx(Menu.Item, { value: "5", disabled: true, children: "Really?" })] }) }));
|
|
26
26
|
};
|
|
27
27
|
export const Default = DefaultTemplate.bind({});
|
|
28
28
|
const CustomTemplate = args => (_jsxs(Stack, { direction: "row", columnGap: 8, children: [_jsx(Popover, { ...args, children: _jsx("div", { style: {
|
|
@@ -56,3 +56,9 @@ const ControlledTemplate = (args) => {
|
|
|
56
56
|
};
|
|
57
57
|
export const Controlled = ControlledTemplate.bind({});
|
|
58
58
|
Controlled.args = {};
|
|
59
|
+
const WithElevatorTemplate = args => (_jsx(Popover, { ...args, children: _jsx(Elevator, { resting: 2, children: _jsxs(Card, { dimmed: 0, bordered: true, children: ["Lorem ipsum dolor sit.", ' ', _jsx("a", { href: "https://design.wonderflow.ai/get-started/components/dialogs/popover", target: "_blank", rel: "noreferrer", children: "More Popover info." })] }) }) }));
|
|
60
|
+
export const WithElevator = WithElevatorTemplate.bind({});
|
|
61
|
+
WithElevator.args = {
|
|
62
|
+
placement: 'auto-end',
|
|
63
|
+
trigger: _jsx(IconButton, { kind: "flat", icon: "circle-info", iconColor: "var(--cta-default)", dimension: "big", "aria-label": "Show property description" }),
|
|
64
|
+
};
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { fireEvent, render } from '@testing-library/react';
|
|
18
3
|
import { Button } from '../button';
|
|
19
4
|
import { Popover } from './popover';
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
/* eslint-disable max-len */
|
|
18
3
|
import { render } from '@testing-library/react';
|
|
19
4
|
import { Prose } from './prose';
|
|
@@ -19,7 +19,7 @@ import { forwardRef, } from 'react';
|
|
|
19
19
|
import { useUIDSeed } from 'react-uid';
|
|
20
20
|
import { Stack, Symbol, Text, } from '../..';
|
|
21
21
|
import * as styles from './select.module.css';
|
|
22
|
-
export const Select = forwardRef(({ children, className, disabled = false, icon = '
|
|
22
|
+
export const Select = forwardRef(({ children, className, disabled = false, icon = 'chevron-down', label, kind = 'single', dimension = 'regular', onChange, ...otherProps }, forwardedRef) => {
|
|
23
23
|
const seedID = useUIDSeed();
|
|
24
24
|
const iconSizes = {
|
|
25
25
|
small: 12,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer components{.Select{appearance:none;padding:0;position:relative}.Select[data-select-dimension=small]{--field-height:1.
|
|
1
|
+
@layer components{.Select{appearance:none;padding:0;position:relative}.Select[data-select-dimension=small]{--field-height:1.500rem;--field-padding:0.33rem;--font-size:0.875rem}.Select[data-select-dimension=regular]{--field-height:2.500rem;--field-padding:1.000rem;--font-size:1.000rem}.Select[data-select-dimension=big]{--field-height:3.000rem;--field-padding:1.000rem;--font-size:1.125rem}.FieldContainer{color:var(--global-vibrancy-foreground);inline-size:100%;position:relative}.Select[aria-disabled=true] .FieldContainer{color:var(--global-disabled-foreground)}.Field{appearance:none;-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background:linear-gradient(to bottom,var(--global-vibrancy-background),var(--global-vibrancy-background));block-size:var(--field-height);border:0;border-radius:.25rem;box-sizing:border-box;color:inherit;display:block;font-family:inherit;font-size:var(--font-size);margin:0;min-inline-size:100%;overflow:hidden;padding:0 calc(var(--field-padding)*3.5) 0 var(--field-padding);text-overflow:ellipsis}.Field:disabled{background:linear-gradient(to bottom,var(--global-disabled-background),var(--global-disabled-background));color:var(--global-disabled-foreground);cursor:not-allowed}.Field option{color:#000}.Field optgroup{color:initial}.Field[multiple]{block-size:auto;overflow:auto;padding:.5rem 1rem}.Field[multiple] option{color:currentcolor;padding:calc(var(--field-padding)/2) var(--field-padding)}.Field[multiple] option:checked{background:#9ea5b3 linear-gradient(180deg,#9ea5b3 0,#9ea5b3);background-color:#9ea5b3;color:var(--global-background)}.Field[multiple] optgroup{color:currentcolor;font-family:inherit;font-size:inherit;line-height:inherit;margin:0 0 1rem}.Icon{border-radius:.25rem;pointer-events:none;position:absolute;right:calc(var(--field-padding) - var(--field-padding)/3);top:calc(var(--field-height)/2);transform:translateY(-50%)}.Label[aria-disabled=true]{color:var(--global-disabled-foreground);cursor:not-allowed}}
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { render } from '@testing-library/react';
|
|
18
3
|
import { Select } from './select';
|
|
19
4
|
describe('<Select>', () => {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { render } from '@testing-library/react';
|
|
18
3
|
import { Checkbox } from './checkbox';
|
|
19
4
|
import { Radio } from './radio';
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { render } from '@testing-library/react';
|
|
18
3
|
import { Separator } from './separator';
|
|
19
4
|
describe('<Separator>', () => {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { render } from '@testing-library/react';
|
|
18
3
|
import { Skeleton } from './skeleton';
|
|
19
4
|
describe('<Skeleton>', () => {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
/* eslint-disable @typescript-eslint/comma-dangle */
|
|
18
3
|
import { fireEvent, render } from '@testing-library/react';
|
|
19
4
|
import { Slider } from './slider';
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { render } from '@testing-library/react';
|
|
18
3
|
import { Snackbar } from './snackbar';
|
|
19
4
|
describe('<Snackbar>', () => {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { render } from '@testing-library/react';
|
|
18
3
|
import { Spinner } from './spinner';
|
|
19
4
|
describe('<Spinner>', () => {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { render } from '@testing-library/react';
|
|
18
3
|
import { SplitButton } from './split-button';
|
|
19
4
|
describe('<SplitButton>', () => {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { render } from '@testing-library/react';
|
|
18
3
|
import { Stack } from './stack';
|
|
19
4
|
describe('<Stack>', () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer components{.StarMeter{--star-color:#f5a856;--star-dimmed-color:var(--dimmed-2);--icon-size:1.
|
|
1
|
+
@layer components{.StarMeter{--star-color:#f5a856;--star-dimmed-color:var(--dimmed-2);--icon-size:1.000rem;position:relative}.StarMeter[data-star-meter-dimension=small]{--icon-size:token(--icon-size-14)}.StarMeter[data-star-meter-dimension=big]{--icon-size:1.500rem}.Gradient{clip:rect(0 0 0 0);block-size:1px;clip-path:inset(50%);inline-size:1px;overflow:hidden;position:absolute;white-space:nowrap}.Icon{block-size:var(--icon-size);inline-size:var(--icon-size)}}
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { render } from '@testing-library/react';
|
|
18
3
|
import { StarMeter } from './star-meter';
|
|
19
4
|
describe('<StarMeter>', () => {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { render } from '@testing-library/react';
|
|
18
3
|
import { Symbol } from './symbol';
|
|
19
4
|
const CustomReactIcon = ({ ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 0 256 256", ...props, children: _jsx("path", { d: "M128 16a96.2 96.2 0 0 0-96 96c0 24 12.6 55.1 33.6 83s44.5 45 62.4 45 41.2-16.8 62.4-45 33.6-59 33.6-83a96.2 96.2 0 0 0-96-96ZM64 116v-4a12 12 0 0 1 12-12 36 36 0 0 1 36 36v4a12 12 0 0 1-12 12 36 36 0 0 1-36-36Zm80 84h-32a8 8 0 0 1 0-16h32a8 8 0 0 1 0 16Zm48-84a36 36 0 0 1-36 36 12 12 0 0 1-12-12v-4a36 36 0 0 1 36-36 12 12 0 0 1 12 12Z" }) }));
|
|
@@ -28,6 +28,6 @@ export const Tab = ({ className, children, onValueChange, defaultValue, value, l
|
|
|
28
28
|
onValueChange?.(value);
|
|
29
29
|
setActiveItem(value);
|
|
30
30
|
}, [onValueChange]);
|
|
31
|
-
return (_jsxs(TabsPrimitive.Root, { defaultValue: defaultValue, onValueChange: handleOnVlaueChange, className: className, value: value, "data-testid": "TabRoot", ...otherProps, children: [_jsx(LazyMotion, { features: domMax, strict: true, children: _jsx(TabsPrimitive.List, { className: styles.List, loop: loop, children: Children.map(children, child => isValidElement(child) && (_jsx(TabsPrimitive.Trigger, { value: child.props.value, disabled: child.props.disabled, className: styles.Trigger, "data-tab-dimension": dimension, asChild: true, children: _jsxs(Button, { kind: "flat", dimension: "big", children: [child.props.icon && _jsx(Symbol, { source: child.props.icon, dimension: dimension === 'big' ? 24 : 16, weight: dimension === 'big' ? 'duotone' : 'solid' }), child.props.label, (child.props.value === activeItem) && (_jsx(m.span, { className: styles.Highlight, layoutId: uid('tab-highlight') }))] }) }))) }) }), children] }));
|
|
31
|
+
return (_jsxs(TabsPrimitive.Root, { defaultValue: defaultValue, onValueChange: handleOnVlaueChange, className: className, value: value, "data-testid": "TabRoot", ...otherProps, children: [_jsx(LazyMotion, { features: domMax, strict: true, children: _jsx(TabsPrimitive.List, { className: styles.List, loop: loop, children: Children.map(children, child => isValidElement(child) && (_jsx(TabsPrimitive.Trigger, { value: child.props.value, disabled: child.props.disabled, className: styles.Trigger, "data-tab-dimension": dimension, asChild: true, children: _jsxs(Button, { kind: "flat", dimension: "big", children: [child.props.icon && _jsx(Symbol, { source: child.props.icon, dimension: dimension === 'big' ? 24 : 16, weight: dimension === 'big' ? 'duotone' : 'solid' }), child.props.label, (child.props.value === activeItem || child.props.value === value) && (_jsx(m.span, { className: styles.Highlight, layoutId: uid('tab-highlight') }))] }) }))) }) }), children] }));
|
|
32
32
|
};
|
|
33
33
|
Tab.Panel = TabPanel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer components{.List{--separator-size:2px;box-shadow:inset 0 calc(var(--separator-size)*-1) 0 var(--dimmed-1);overflow:auto;white-space:nowrap}.Highlight{background:var(--cta-default);border-radius:2px 2px 0 0;bottom:0;height:4px;pointer-events:none;position:absolute;width:100%}.Panel{animation:fade-in .2s;animation-timing-function:cubic-bezier(0,0,.34,1))}}@layer overrides{.Trigger{appearance:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:none;background-color:transparent;block-size:3rem;border:0;border-radius:0;color:var(--dimmed-6);flex-shrink:0;font-family:inherit;font-weight:400;outline-offset:calc(var(--separator-size)*-1);overflow:unset;padding:.5rem 1rem;position:relative;white-space:nowrap}.Trigger[data-tab-dimension=big]{font-size:1.
|
|
1
|
+
@layer components{.List{--separator-size:2px;box-shadow:inset 0 calc(var(--separator-size)*-1) 0 var(--dimmed-1);overflow:auto;white-space:nowrap}.Highlight{background:var(--cta-default);border-radius:2px 2px 0 0;bottom:0;height:4px;pointer-events:none;position:absolute;width:100%}.Panel{animation:fade-in .2s;animation-timing-function:cubic-bezier(0,0,.34,1))}}@layer overrides{.Trigger{appearance:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:none;background-color:transparent;block-size:3rem;border:0;border-radius:0;color:var(--dimmed-6);flex-shrink:0;font-family:inherit;font-weight:400;outline-offset:calc(var(--separator-size)*-1);overflow:unset;padding:.5rem 1rem;position:relative;white-space:nowrap}.Trigger[data-tab-dimension=big]{font-size:1.375rem;height:calc(3.5rem - var(--separator-size))}.Trigger:active{transform:none}.Trigger:not([aria-disabled=true]){-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--dimmed-5)}.Trigger.Trigger:not([aria-disabled=true]):is(:hover,:focus,:active){-webkit-backdrop-filter:none;backdrop-filter:none;background:none;color:var(--global-foreground)}.Trigger.Trigger[aria-disabled=true]{-webkit-backdrop-filter:none;backdrop-filter:none;background:none;color:var(--global-disabled-foreground)}.Trigger[data-state=active]{-webkit-text-stroke:.4px var(--global-foreground);color:var(--global-foreground)}}@keyframes fade-in{0%{opacity:0;transform:translate(var(--fade-from-x,0),var(--fade-from-y,0))}to{opacity:unset;transform:none}}
|
|
@@ -11,6 +11,7 @@ export declare const InitialTab: ComponentStory<{
|
|
|
11
11
|
({ className, children, onValueChange, defaultValue, value, loop, dimension, ...otherProps }: import("./tab").TabProps): JSX.Element;
|
|
12
12
|
Panel: FCChildrenClass<import("./tabs-panel").TabPanelProps>;
|
|
13
13
|
}>;
|
|
14
|
+
export declare const ProgrammaticTab: ComponentStory<typeof Tab>;
|
|
14
15
|
export declare const ChangeEvent: ComponentStory<{
|
|
15
16
|
({ className, children, onValueChange, defaultValue, value, loop, dimension, ...otherProps }: import("./tab").TabProps): JSX.Element;
|
|
16
17
|
Panel: FCChildrenClass<import("./tabs-panel").TabPanelProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab.stories.d.ts","sourceRoot":"","sources":["../../../src/components/tab/tab.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIjE,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,QAAA,MAAM,KAAK,EAAE,aAAa,CAAC,OAAO,GAAG,CAOpC,CAAC;AACF,eAAe,KAAK,CAAC;AAarB,eAAO,MAAM,OAAO;;;EAAoB,CAAC;AAEzC,eAAO,MAAM,UAAU;;;EAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"tab.stories.d.ts","sourceRoot":"","sources":["../../../src/components/tab/tab.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIjE,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,QAAA,MAAM,KAAK,EAAE,aAAa,CAAC,OAAO,GAAG,CAOpC,CAAC;AACF,eAAe,KAAK,CAAC;AAarB,eAAO,MAAM,OAAO;;;EAAoB,CAAC;AAEzC,eAAO,MAAM,UAAU;;;EAAoB,CAAC;AAK5C,eAAO,MAAM,eAAe,EAAE,cAAc,CAAC,OAAO,GAAG,CAqBtD,CAAC;AAEF,eAAO,MAAM,WAAW;;;EAAoB,CAAC;AAM7C,eAAO,MAAM,cAAc,mBAc1B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,cAAc,CAAC,OAAO,GAAG,CASlD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,cAAc,CAAC,OAAO,GAAG,CAShD,CAAC"}
|
|
@@ -17,23 +17,10 @@ export const InitialTab = Template.bind({});
|
|
|
17
17
|
InitialTab.args = {
|
|
18
18
|
defaultValue: '3',
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
// <Tab.Panel value="1" label="Tab 1">
|
|
25
|
-
// Tab panel 1
|
|
26
|
-
// <Button icon="sun-bright" onClick={() => setState('3')}>Go to tab 3</Button>
|
|
27
|
-
// </Tab.Panel>
|
|
28
|
-
// <Tab.Panel value="2" label="Tab 2">
|
|
29
|
-
// Tab panel 2
|
|
30
|
-
// </Tab.Panel>
|
|
31
|
-
// <Tab.Panel value="3" label="Tab 3">
|
|
32
|
-
// Tab panel 3
|
|
33
|
-
// </Tab.Panel>
|
|
34
|
-
// </Tab>
|
|
35
|
-
// );
|
|
36
|
-
// };
|
|
20
|
+
export const ProgrammaticTab = () => {
|
|
21
|
+
const [state, setState] = useState('1');
|
|
22
|
+
return (_jsxs(Tab, { value: state, onValueChange: val => setState(val), children: [_jsxs(Tab.Panel, { value: "1", label: "Tab 1", children: [_jsx("p", { children: "Tab panel 1" }), _jsx(Button, { icon: "sun-bright", dimension: "small", onClick: () => setState('3'), children: "Go to tab 3" })] }), _jsxs(Tab.Panel, { value: "2", label: "Tab 2", children: [_jsx("p", { children: "Tab panel 2" }), _jsx(Button, { icon: "sun-bright", dimension: "small", onClick: () => setState('1'), children: "Go to tab 1" })] }), _jsxs(Tab.Panel, { value: "3", label: "Tab 3", children: [_jsx("p", { children: "Tab panel 3" }), _jsx(Button, { icon: "sun-bright", dimension: "small", onClick: () => setState('2'), children: "Go to tab 2" })] })] }));
|
|
23
|
+
};
|
|
37
24
|
export const ChangeEvent = Template.bind({});
|
|
38
25
|
ChangeEvent.args = {
|
|
39
26
|
onValueChange: current => alert(`current is ${current}`),
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { fireEvent, render } from '@testing-library/react';
|
|
18
3
|
import { Tab } from './tab';
|
|
19
4
|
describe('<Tab>', () => {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { render } from '@testing-library/react';
|
|
18
3
|
import { TableCell } from './table-cell';
|
|
19
4
|
describe('<TableCell>', () => {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { render } from '@testing-library/react';
|
|
18
3
|
import { TableCheckbox } from './table-checkbox';
|
|
19
4
|
describe('<TableCheckbox>', () => {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { fireEvent, render } from '@testing-library/react';
|
|
18
3
|
import { ToggleColumnsControl } from './toggle-columns';
|
|
19
4
|
const COLUMNS = [
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { render } from '@testing-library/react';
|
|
18
3
|
import { TableHeader } from './table-header';
|
|
19
4
|
describe('<TableHeader>', () => {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { render } from '@testing-library/react';
|
|
18
3
|
import { TablePagination } from './table-pagination';
|
|
19
4
|
describe('<TablePagination>', () => {
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2023 Wonderflow Design Team
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
2
|
import { render } from '@testing-library/react';
|
|
18
3
|
import { TableRow } from './table-row';
|
|
19
4
|
describe('<TableRow>', () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer components{.Table{position:relative;width:100%;z-index:0}.TableWrapper[data-table-scrolling=true]{-webkit-overflow-scrolling:touch;background:var(--table-background);max-height:var(--table-height);overflow:auto;overscroll-behavior:contain}.TableElement{border-collapse:collapse;font-size:1rem;width:100%}.TableElement[data-table-loading=true]{pointer-events:none;-webkit-user-select:none;user-select:none}.THead{background:var(--table-background);box-shadow:inset 0 -3px 0 var(--dimmed-2);position:sticky;top:0;z-index:2}@media not all and (
|
|
1
|
+
@layer components{.Table{position:relative;width:100%;z-index:0}.TableWrapper[data-table-scrolling=true]{-webkit-overflow-scrolling:touch;background:var(--table-background);max-height:var(--table-height);overflow:auto;overscroll-behavior:contain}.TableElement{border-collapse:collapse;font-size:1rem;width:100%}.TableElement[data-table-loading=true]{pointer-events:none;-webkit-user-select:none;user-select:none}.THead{background:var(--table-background);box-shadow:inset 0 -3px 0 var(--dimmed-2);position:sticky;top:0;z-index:2}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none) and (stroke-color:transparent){.THead{border-bottom:3px solid var(--dimmed-2);box-shadow:none}}}.THead th{padding-bottom:1rem;padding-top:1rem}.Toast{-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background);border-radius:.5rem;left:0;min-block-size:3.5rem;position:absolute;right:0;top:0;z-index:4}.ExpandButton{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.stories.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.stories.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQjE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAWhC,QAAA,MAAM,KAAK,EAAE,aAAa,CAAC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"table.stories.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.stories.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQjE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAWhC,QAAA,MAAM,KAAK,EAAE,aAAa,CAAC,OAAO,KAAK,CA+5BtC,CAAC;AAEF,eAAe,KAAK,CAAC;AAgCrB,eAAO,MAAM,MAAM,4kBAAoB,CAAC;AA0BxC,eAAO,MAAM,YAAY,4kBAA6B,CAAC;AAwCvD,eAAO,MAAM,YAAY,4kBAAgC,CAAC;AAM1D,eAAO,MAAM,oBAAoB,4kBAAoB,CAAC;AAOtD,eAAO,MAAM,UAAU,4kBAAoB,CAAC;AAS5C,eAAO,MAAM,gBAAgB,4kBAAoB,CAAC;AAQlD,eAAO,MAAM,gBAAgB,4kBAAoB,CAAC;AAQlD,eAAO,MAAM,UAAU,4kBAA6B,CAAC;AAuDrD,eAAO,MAAM,UAAU,4kBAA8B,CAAC;AAOtD,eAAO,MAAM,MAAM,4kBAAoB,CAAC;AAoDxC,eAAO,MAAM,gBAAgB,4kBAAoC,CAAC;AASlE,eAAO,MAAM,OAAO,4kBAAoB,CAAC;AAyDzC,eAAO,MAAM,aAAa,4kBAAiC,CAAC;AAmD5D,eAAO,MAAM,yBAAyB,4kBAA6C,CAAC;AAkCpF,eAAO,MAAM,eAAe,4kBAAmC,CAAC;AAmChE,eAAO,MAAM,SAAS,4kBAA6B,CAAC"}
|