@economic/taco 0.0.1-alpha.1533 → 0.0.1-alpha.8
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/Backdrop/Backdrop.d.ts +3 -0
- package/dist/components/Button/Button.d.ts +39 -1
- package/dist/components/Button/util.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Dialog/Context.d.ts +1 -0
- package/dist/components/Dialog/Dialog.d.ts +14 -12
- package/dist/components/Hanger/Hanger.d.ts +4 -9
- package/dist/components/Icon/components/MatchEntries.d.ts +3 -0
- package/dist/components/Icon/components/index.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts +38 -1
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Menu/Menu.d.ts +2 -2
- package/dist/components/Menu/components/Item.d.ts +1 -1
- package/dist/components/Menu/components/Link.d.ts +1 -1
- package/dist/components/Navigation/Navigation.d.ts +4 -4
- package/dist/components/Popover/Popover.d.ts +5 -9
- package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/components/Select/Select.d.ts +4 -0
- package/dist/components/Select/useSelect.d.ts +1 -1
- package/dist/components/Table/Table.storyexample.d.ts +1 -1
- package/dist/components/Table/components/PaginatedTable.d.ts +2 -2
- package/dist/components/Table/components/Table.d.ts +2 -2
- package/dist/components/Table/components/WindowedTable.d.ts +2 -2
- package/dist/components/Table/types.d.ts +2 -2
- package/dist/components/Tabs/Tabs.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.d.ts +11 -1
- package/dist/components/Treeview/Treeview.d.ts +2 -2
- package/dist/esm/index.css +96 -119
- package/dist/esm/src/components/Backdrop/Backdrop.js +12 -0
- package/dist/esm/src/components/Backdrop/Backdrop.js.map +1 -0
- package/dist/esm/src/components/Button/Button.js +6 -9
- package/dist/esm/src/components/Button/Button.js.map +1 -1
- package/dist/esm/src/components/Button/util.js +42 -1
- package/dist/esm/src/components/Button/util.js.map +1 -1
- package/dist/esm/src/components/Calendar/Calendar.js +1 -1
- package/dist/esm/src/components/Checkbox/Checkbox.js +9 -1
- package/dist/esm/src/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/esm/src/components/Combobox/useCombobox.js +1 -1
- package/dist/esm/src/components/Datepicker/Datepicker.js +2 -2
- package/dist/esm/src/components/Dialog/Context.js +1 -0
- package/dist/esm/src/components/Dialog/Context.js.map +1 -1
- package/dist/esm/src/components/Dialog/Dialog.js +5 -4
- package/dist/esm/src/components/Dialog/Dialog.js.map +1 -1
- package/dist/esm/src/components/Dialog/components/Content.js +13 -13
- package/dist/esm/src/components/Dialog/components/Content.js.map +1 -1
- package/dist/esm/src/components/Dialog/components/Drawer.js +2 -1
- package/dist/esm/src/components/Dialog/components/Drawer.js.map +1 -1
- package/dist/esm/src/components/Dialog/components/Extra.js +2 -1
- package/dist/esm/src/components/Dialog/components/Extra.js.map +1 -1
- package/dist/esm/src/components/Dialog/components/Trigger.js +2 -1
- package/dist/esm/src/components/Dialog/components/Trigger.js.map +1 -1
- package/dist/esm/src/components/Hanger/Hanger.js +12 -9
- package/dist/esm/src/components/Hanger/Hanger.js.map +1 -1
- package/dist/esm/src/components/Icon/components/MatchEntries.js +18 -0
- package/dist/esm/src/components/Icon/components/MatchEntries.js.map +1 -0
- package/dist/esm/src/components/Icon/components/index.js +2 -0
- package/dist/esm/src/components/Icon/components/index.js.map +1 -1
- package/dist/esm/src/components/IconButton/IconButton.js +9 -11
- package/dist/esm/src/components/IconButton/IconButton.js.map +1 -1
- package/dist/esm/src/components/Input/util.js +6 -6
- package/dist/esm/src/components/Input/util.js.map +1 -1
- package/dist/esm/src/components/Listbox/ScrollableList.js +1 -1
- package/dist/esm/src/components/Navigation/Navigation.js +5 -4
- package/dist/esm/src/components/Navigation/Navigation.js.map +1 -1
- package/dist/esm/src/components/Pagination/PageNumbers.js +1 -1
- package/dist/esm/src/components/Pagination/Pagination.js +2 -1
- package/dist/esm/src/components/Pagination/Pagination.js.map +1 -1
- package/dist/esm/src/components/Popover/Popover.js +9 -6
- package/dist/esm/src/components/Popover/Popover.js.map +1 -1
- package/dist/esm/src/components/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/esm/src/components/SearchInput/SearchInput.js +8 -7
- package/dist/esm/src/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/esm/src/components/Select/Select.js +2 -1
- package/dist/esm/src/components/Select/Select.js.map +1 -1
- package/dist/esm/src/components/Select/useSelect.js +12 -5
- package/dist/esm/src/components/Select/useSelect.js.map +1 -1
- package/dist/esm/src/components/Table/components/PaginatedTable.js.map +1 -1
- package/dist/esm/src/components/Table/components/Table.js.map +1 -1
- package/dist/esm/src/components/Table/components/WindowedTable.js.map +1 -1
- package/dist/esm/src/components/Table/hooks/plugins/useRowActions.js +11 -5
- package/dist/esm/src/components/Table/hooks/plugins/useRowActions.js.map +1 -1
- package/dist/esm/src/components/Table/hooks/plugins/useRowSelect.js +3 -3
- package/dist/esm/src/components/Table/hooks/plugins/useRowSelect.js.map +1 -1
- package/dist/esm/src/components/Table/util/renderColumn.js +4 -3
- package/dist/esm/src/components/Table/util/renderColumn.js.map +1 -1
- package/dist/esm/src/components/Table/util/renderRow.js +4 -3
- package/dist/esm/src/components/Table/util/renderRow.js.map +1 -1
- package/dist/esm/src/components/Tabs/Tabs.js.map +1 -1
- package/dist/esm/src/components/Toast/Toast.js +1 -1
- package/dist/esm/src/components/Tooltip/Tooltip.js +11 -10
- package/dist/esm/src/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/src/components/Tour/Tour.js +2 -2
- package/dist/esm/src/components/Treeview/Treeview.js.map +1 -1
- package/dist/esm/src/index.js +8 -7
- package/dist/esm/src/index.js.map +1 -1
- package/dist/esm/src/primitives/Button.js +2 -12
- package/dist/esm/src/primitives/Button.js.map +1 -1
- package/dist/esm/src/utils/mergeRefs.js +14 -0
- package/dist/esm/src/utils/mergeRefs.js.map +1 -0
- package/dist/index.css +96 -119
- package/dist/index.d.ts +1 -0
- package/dist/primitives/Button.d.ts +0 -4
- package/dist/taco.cjs.development.js +1660 -1570
- package/dist/taco.cjs.development.js.map +1 -1
- package/dist/taco.cjs.production.min.js +1 -1
- package/dist/taco.cjs.production.min.js.map +1 -1
- package/dist/utils/mergeRefs.d.ts +2 -0
- package/dist/utils/tailwind.d.ts +1 -1
- package/package.json +5 -3
- package/plugins/tailwindcss-aria-attributes.js +73 -0
- package/types.json +7310 -0
@@ -26,12 +26,12 @@ export declare type NavigationItemProps = Omit<TreeviewItemProps, 'prefix'> & {
|
|
26
26
|
export declare type NavigationPanelProps = React.HTMLAttributes<HTMLDivElement>;
|
27
27
|
export declare type NavigationMenuGroupProps = TreeviewGroupProps;
|
28
28
|
export declare type NavigationMenuProps = React.PropsWithChildren<TreeviewProps>;
|
29
|
-
export declare type
|
29
|
+
export declare type ForwardedNavigationMenuWithStatics = React.ForwardRefExoticComponent<NavigationMenuProps & React.RefAttributes<HTMLDivElement>> & {
|
30
30
|
/** Expandable region reprezenting a group of related links */
|
31
31
|
Group: React.ForwardRefExoticComponent<NavigationMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
32
32
|
};
|
33
33
|
export declare type NavigationProps = React.HTMLAttributes<HTMLDivElement>;
|
34
|
-
export declare type
|
34
|
+
export declare type ForwardedNavigationWithStatics = React.ForwardRefExoticComponent<NavigationProps & React.RefAttributes<HTMLDivElement>> & {
|
35
35
|
/** Navigation link */
|
36
36
|
Item: React.ForwardRefExoticComponent<NavigationItemProps & React.RefAttributes<HTMLAnchorElement>>;
|
37
37
|
/**
|
@@ -39,7 +39,7 @@ export declare type FowardedNavigationWithStatics = React.ForwardRefExoticCompon
|
|
39
39
|
* Should be used as a direct child of Navigation component, e.g. `Navigation.Menu`.
|
40
40
|
* Should have the menu groups as a direct child, e.g. `Navigation.Menu.Group`
|
41
41
|
*/
|
42
|
-
Menu:
|
42
|
+
Menu: ForwardedNavigationMenuWithStatics;
|
43
43
|
/**
|
44
44
|
* Isolated container within the Navigation.
|
45
45
|
* This can be used to create a region in the Navigation that is usually not scrollable, nor expandable,
|
@@ -47,4 +47,4 @@ export declare type FowardedNavigationWithStatics = React.ForwardRefExoticCompon
|
|
47
47
|
*/
|
48
48
|
Panel: React.ForwardRefExoticComponent<NavigationPanelProps & React.RefAttributes<HTMLDivElement>>;
|
49
49
|
};
|
50
|
-
export declare const Navigation:
|
50
|
+
export declare const Navigation: ForwardedNavigationWithStatics;
|
@@ -11,13 +11,9 @@ export declare type PopoverContentProps = Omit<React.HTMLAttributes<HTMLDivEleme
|
|
11
11
|
};
|
12
12
|
export declare type PopoverCloseProps = React.HTMLAttributes<HTMLButtonElement>;
|
13
13
|
export declare type PopoverProps = React.PropsWithChildren<{}>;
|
14
|
-
export declare
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
children: string | number | boolean | {} | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | Iterable<React.ReactNode> | React.ReactPortal | ((props: PopoverContentRenderProps) => React.ReactNode) | null | undefined;
|
19
|
-
/** Set the position of the Popover relative to its trigger. Default value is `bottom` */
|
20
|
-
placement?: "right" | "left" | "top" | "bottom" | undefined;
|
21
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
22
|
-
Close: React.ForwardRefExoticComponent<PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
14
|
+
export declare type ForwardedPopoverWithStatics = React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLElement>> & {
|
15
|
+
Trigger: React.ForwardRefExoticComponent<PopoverTriggerProps>;
|
16
|
+
Content: React.ForwardRefExoticComponent<PopoverContentProps>;
|
17
|
+
Close: React.ForwardRefExoticComponent<PopoverCloseProps>;
|
23
18
|
};
|
19
|
+
export declare const Popover: ForwardedPopoverWithStatics;
|
@@ -36,7 +36,7 @@ interface ControlledRadioGroupProps extends RadioGroupBaseProps {
|
|
36
36
|
value: RadioGroupItemValue;
|
37
37
|
}
|
38
38
|
export declare type RadioGroupProps = UncontrolledRadioGroupProps | ControlledRadioGroupProps;
|
39
|
-
export declare type
|
39
|
+
export declare type ForwardedRadioGroupWithStatics = React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>> & {
|
40
40
|
/** Item component rendered in a `RadioGroup` component */
|
41
41
|
Item: React.ForwardRefExoticComponent<RadioGroupItemProps>;
|
42
42
|
};
|
@@ -47,5 +47,5 @@ export declare const useRadioGroup: (props: RadioGroupProps) => {
|
|
47
47
|
};
|
48
48
|
props: any;
|
49
49
|
};
|
50
|
-
export declare const RadioGroup:
|
50
|
+
export declare const RadioGroup: ForwardedRadioGroupWithStatics;
|
51
51
|
export {};
|
@@ -14,6 +14,8 @@ export declare type BaseSelectProps = ListboxProps & Omit<ComboboxProps, 'inline
|
|
14
14
|
* All the selected values will be combined in a comma-seperated string as the value of the input.
|
15
15
|
*/
|
16
16
|
multiselect?: boolean;
|
17
|
+
/** Optionally shows the icon for the selected option */
|
18
|
+
showSelectedIcon?: boolean;
|
17
19
|
};
|
18
20
|
export declare type SelectProps = BaseSelectProps & {
|
19
21
|
/**
|
@@ -38,6 +40,8 @@ export declare const Select: React.ForwardRefExoticComponent<Pick<React.InputHTM
|
|
38
40
|
* All the selected values will be combined in a comma-seperated string as the value of the input.
|
39
41
|
*/
|
40
42
|
multiselect?: boolean | undefined;
|
43
|
+
/** Optionally shows the icon for the selected option */
|
44
|
+
showSelectedIcon?: boolean | undefined;
|
41
45
|
} & {
|
42
46
|
/**
|
43
47
|
* Creates an editable select.
|
@@ -11,5 +11,5 @@ declare type useSelect = React.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
11
11
|
text: string | JSX.Element;
|
12
12
|
more?: number;
|
13
13
|
};
|
14
|
-
export declare const useSelect: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, data, disabled, emptyValue, id: nativeId, multiselect, onClick, readOnly, value, ...otherProps }: SelectProps, ref: React.Ref<HTMLInputElement>) => useSelect;
|
14
|
+
export declare const useSelect: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, data, disabled, emptyValue, id: nativeId, multiselect, onClick, readOnly, showSelectedIcon, value, ...otherProps }: SelectProps, ref: React.Ref<HTMLInputElement>) => useSelect;
|
15
15
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export default function LocationsTable({ component: Table, allowNew, data: initialData, onRowSave, onReset, showAddress, ...props }: {
|
2
2
|
[x: string]: any;
|
3
|
-
component?: import("./types").
|
3
|
+
component?: import("./types").ForwardedGenericTableWithStatics | undefined;
|
4
4
|
allowNew?: boolean | undefined;
|
5
5
|
data: any;
|
6
6
|
onRowSave?: (() => undefined) | undefined;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
export declare const PaginatedTable:
|
1
|
+
import { ForwardedGenericTableWithStatics } from '../types';
|
2
|
+
export declare const PaginatedTable: ForwardedGenericTableWithStatics;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
export declare const Table:
|
1
|
+
import { ForwardedGenericTableWithStatics } from '../types';
|
2
|
+
export declare const Table: ForwardedGenericTableWithStatics;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
export declare const WindowedTable:
|
1
|
+
import { ForwardedGenericTableWithStatics } from '../types';
|
2
|
+
export declare const WindowedTable: ForwardedGenericTableWithStatics;
|
@@ -136,7 +136,7 @@ export declare type TableProps<TRow> = React.HTMLAttributes<HTMLDivElement> & {
|
|
136
136
|
autoFocus?: boolean;
|
137
137
|
/**
|
138
138
|
* Children should be one of the Table's components.
|
139
|
-
* Read about `
|
139
|
+
* Read about `ForwardedGenericTableWithStatics` for more details.
|
140
140
|
* *Note* that there can also be children that are rendered conditionally
|
141
141
|
*/
|
142
142
|
children: TableChildren<TRow>;
|
@@ -229,7 +229,7 @@ export declare type TableRef = HTMLDivElement & {
|
|
229
229
|
toggleSortBy: any;
|
230
230
|
};
|
231
231
|
};
|
232
|
-
export declare type
|
232
|
+
export declare type ForwardedGenericTableWithStatics = React.ForwardRefExoticComponent<TableProps<any> & React.RefAttributes<HTMLDivElement>> & {
|
233
233
|
/** Represents a column in your table */
|
234
234
|
Column: <TRow>(props: TableColumnProps<TRow>) => JSX.Element | null;
|
235
235
|
/**
|
@@ -44,7 +44,7 @@ export declare type TabContentProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
44
44
|
*/
|
45
45
|
id: string;
|
46
46
|
};
|
47
|
-
export declare type
|
47
|
+
export declare type ForwardedTabsWithStatics = React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>> & {
|
48
48
|
/** Tab list component containing all tab triggers, rendered in a `Tabs` group component */
|
49
49
|
List: React.ForwardRefExoticComponent<TabListProps & React.RefAttributes<HTMLDivElement>>;
|
50
50
|
/** Tab trigger component rendered in a `Tabs.List` component */
|
@@ -52,4 +52,4 @@ export declare type FowardedTabsWithStatics = React.ForwardRefExoticComponent<Ta
|
|
52
52
|
/** Tab content component rendered in a `Tabs` group component */
|
53
53
|
Content: React.ForwardRefExoticComponent<TabContentProps & React.RefAttributes<HTMLDivElement>>;
|
54
54
|
};
|
55
|
-
export declare const Tabs:
|
55
|
+
export declare const Tabs: ForwardedTabsWithStatics;
|
@@ -10,4 +10,14 @@ export declare type TooltipProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
10
10
|
*/
|
11
11
|
placement?: 'top' | 'right' | 'bottom' | 'left';
|
12
12
|
};
|
13
|
-
export declare const Tooltip:
|
13
|
+
export declare const Tooltip: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
14
|
+
/** The element which activates the tooltip when hovered. Should be a single React/HTML element */
|
15
|
+
children: React.ReactElement | any;
|
16
|
+
/** Text displayed in the tooltip */
|
17
|
+
title: string;
|
18
|
+
/**
|
19
|
+
* Placement of the tooltip relative to the reference element. Placement will be reversed if a collision occurs
|
20
|
+
* @defaultValue bottom
|
21
|
+
*/
|
22
|
+
placement?: "top" | "right" | "bottom" | "left" | undefined;
|
23
|
+
} & React.RefAttributes<HTMLElement>>;
|
@@ -16,10 +16,10 @@ export declare type TreeviewGroupProps = Omit<React.LinkHTMLAttributes<HTMLDivEl
|
|
16
16
|
title: React.ReactNode | ((expanded: boolean) => React.ReactNode);
|
17
17
|
};
|
18
18
|
export declare type TreeviewProps = React.HTMLAttributes<HTMLDivElement>;
|
19
|
-
export declare type
|
19
|
+
export declare type ForwardedTreeviewWithStatics = React.ForwardRefExoticComponent<TreeviewProps & React.RefAttributes<HTMLDivElement>> & {
|
20
20
|
/** Navigable link */
|
21
21
|
Item: React.ForwardRefExoticComponent<TreeviewItemProps & React.RefAttributes<HTMLAnchorElement>>;
|
22
22
|
/** Container for a set of related links, usually expandable */
|
23
23
|
Group: React.ForwardRefExoticComponent<TreeviewGroupProps & React.RefAttributes<HTMLDivElement>>;
|
24
24
|
};
|
25
|
-
export declare const Treeview:
|
25
|
+
export declare const Treeview: ForwardedTreeviewWithStatics;
|
package/dist/esm/index.css
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
}
|
17
17
|
|
18
18
|
body {
|
19
|
-
@apply bg-white text-
|
19
|
+
@apply h-screen bg-white text-sm leading-relaxed text-black;
|
20
20
|
}
|
21
21
|
|
22
22
|
blockquote,
|
@@ -74,7 +74,7 @@
|
|
74
74
|
}
|
75
75
|
|
76
76
|
hr {
|
77
|
-
@apply bg-grey-light
|
77
|
+
@apply bg-grey-light my-5 flex h-px border-none;
|
78
78
|
}
|
79
79
|
|
80
80
|
h1,
|
@@ -87,24 +87,24 @@
|
|
87
87
|
}
|
88
88
|
|
89
89
|
h1 {
|
90
|
-
@apply text-3xl
|
90
|
+
@apply mb-6 text-3xl;
|
91
91
|
}
|
92
92
|
|
93
93
|
h2 {
|
94
|
-
@apply text-2xl
|
94
|
+
@apply mb-2 text-2xl;
|
95
95
|
}
|
96
96
|
|
97
97
|
h3 {
|
98
|
-
@apply text-xl
|
98
|
+
@apply mb-2 text-xl;
|
99
99
|
}
|
100
100
|
|
101
101
|
h4 {
|
102
|
-
@apply text-base font-bold
|
102
|
+
@apply mb-1 text-base font-bold;
|
103
103
|
}
|
104
104
|
|
105
105
|
h5,
|
106
106
|
h6 {
|
107
|
-
@apply font-bold
|
107
|
+
@apply mb-1 font-bold;
|
108
108
|
}
|
109
109
|
|
110
110
|
b,
|
@@ -155,14 +155,6 @@
|
|
155
155
|
@apply max-h-full p-0;
|
156
156
|
}
|
157
157
|
|
158
|
-
[data-taco='button'] > [data-taco='icon'] {
|
159
|
-
@apply inline -ml-2 mr-1 -mt-2 -mb-2 pointer-events-none p-px;
|
160
|
-
}
|
161
|
-
|
162
|
-
[data-taco='button'] > span + [data-taco='icon'] {
|
163
|
-
@apply ml-1 -mr-2;
|
164
|
-
}
|
165
|
-
|
166
158
|
[data-taco='spinner'] svg circle {
|
167
159
|
@apply flex;
|
168
160
|
fill: transparent;
|
@@ -231,11 +223,56 @@
|
|
231
223
|
}
|
232
224
|
|
233
225
|
[data-taco='toast'] > div [data-taco='button'] {
|
234
|
-
@apply py-0 px-2
|
226
|
+
@apply -mt-px py-0 px-2;
|
227
|
+
}
|
228
|
+
|
229
|
+
[data-taco='hanger'] a {
|
230
|
+
@apply text-grey underline;
|
231
|
+
}
|
232
|
+
|
233
|
+
[data-taco='hanger'] > *:last-child {
|
234
|
+
@apply mb-0;
|
235
|
+
}
|
236
|
+
|
237
|
+
.yt-dialog__drag::before,
|
238
|
+
.yt-dialog__drag::after {
|
239
|
+
@apply bg-grey-dark absolute rounded;
|
240
|
+
content: '';
|
241
|
+
left: theme('spacing.1');
|
242
|
+
height: 2px;
|
243
|
+
width: calc(100% - (2 * theme('spacing.1')));
|
244
|
+
}
|
245
|
+
|
246
|
+
.yt-dialog__drag::before {
|
247
|
+
top: 3px;
|
248
|
+
}
|
249
|
+
|
250
|
+
.yt-dialog__drag::after {
|
251
|
+
bottom: 3px;
|
252
|
+
}
|
253
|
+
|
254
|
+
[data-taco='dialog'] *:last-child {
|
255
|
+
@apply mb-0;
|
256
|
+
}
|
257
|
+
|
258
|
+
[data-taco='group'] > [data-taco='badge'] + [data-taco='badge'] {
|
259
|
+
@apply ml-1;
|
260
|
+
}
|
261
|
+
|
262
|
+
[data-taco='group'] > *:not(:first-child):not([data-taco='hanger']) {
|
263
|
+
@apply ml-2;
|
264
|
+
}
|
265
|
+
|
266
|
+
[data-taco='button'] > [data-taco='icon'] {
|
267
|
+
@apply pointer-events-none -ml-2 mr-1 -mt-2 -mb-2 inline p-px;
|
268
|
+
}
|
269
|
+
|
270
|
+
[data-taco='button'] > span + [data-taco='icon'] {
|
271
|
+
@apply ml-1 -mr-2;
|
235
272
|
}
|
236
273
|
|
237
274
|
[data-taco='calendar'] .DayPicker-wrapper {
|
238
|
-
@apply relative flex-row
|
275
|
+
@apply relative select-none flex-row;
|
239
276
|
}
|
240
277
|
|
241
278
|
[data-taco='calendar'] .DayPicker-Months {
|
@@ -243,19 +280,19 @@
|
|
243
280
|
}
|
244
281
|
|
245
282
|
[data-taco='calendar'] .DayPicker-Month {
|
246
|
-
@apply
|
283
|
+
@apply m-0 flex border-collapse select-none flex-col;
|
247
284
|
}
|
248
285
|
|
249
286
|
[data-taco='calendar'] .DayPicker-Weekdays {
|
250
|
-
@apply
|
287
|
+
@apply mt-2 flex;
|
251
288
|
}
|
252
289
|
|
253
290
|
[data-taco='calendar'] .DayPicker-WeekdaysRow {
|
254
|
-
@apply flex
|
291
|
+
@apply mb-2 flex w-full justify-between;
|
255
292
|
}
|
256
293
|
|
257
294
|
[data-taco='calendar'] .DayPicker-Weekday {
|
258
|
-
@apply text-grey-darkest text-center uppercase
|
295
|
+
@apply text-grey-darkest flex-grow text-center uppercase;
|
259
296
|
}
|
260
297
|
|
261
298
|
[data-taco='calendar'] .DayPicker-Weekday abbr[title] {
|
@@ -267,11 +304,11 @@
|
|
267
304
|
}
|
268
305
|
|
269
306
|
[data-taco='calendar'] .DayPicker-Week {
|
270
|
-
@apply flex justify-between
|
307
|
+
@apply flex w-full justify-between;
|
271
308
|
}
|
272
309
|
|
273
310
|
[data-taco='calendar'] .DayPicker-Day {
|
274
|
-
@apply h-10 w-10
|
311
|
+
@apply flex h-10 w-10 cursor-pointer items-center justify-center rounded-full;
|
275
312
|
}
|
276
313
|
|
277
314
|
[data-taco='calendar'] .DayPicker--interactionDisabled .DayPicker-Day {
|
@@ -283,7 +320,7 @@
|
|
283
320
|
}
|
284
321
|
|
285
322
|
[data-taco='calendar'] .DayPicker-TodayButton {
|
286
|
-
@apply text-blue border-none bg-transparent text-xs
|
323
|
+
@apply text-blue cursor-pointer border-none bg-transparent text-xs;
|
287
324
|
}
|
288
325
|
|
289
326
|
[data-taco='calendar'] .DayPicker-TodayButton:hover {
|
@@ -301,11 +338,11 @@
|
|
301
338
|
}
|
302
339
|
|
303
340
|
[data-taco='calendar'] .DayPicker-Day--disabled {
|
304
|
-
@apply text-grey-dark
|
341
|
+
@apply text-grey-dark pointer-events-none w-4 cursor-default;
|
305
342
|
}
|
306
343
|
|
307
344
|
[data-taco='calendar'] .DayPicker-Day--disabled > span.dot {
|
308
|
-
@apply bg-grey rounded-full
|
345
|
+
@apply bg-grey inline-block rounded-full p-2;
|
309
346
|
}
|
310
347
|
|
311
348
|
[data-taco='calendar'] .icon:hover,
|
@@ -377,7 +414,7 @@
|
|
377
414
|
}
|
378
415
|
|
379
416
|
.yt-combobox.yt-combobox--inline .yt-input__container > .yt-button {
|
380
|
-
@apply yt-transparent
|
417
|
+
@apply yt-transparent text-grey-darkest border-0 shadow-none;
|
381
418
|
}
|
382
419
|
|
383
420
|
.yt-combobox.yt-combobox--inline .yt-input__container > .yt-button:hover,
|
@@ -395,41 +432,12 @@
|
|
395
432
|
@apply border-blue;
|
396
433
|
}
|
397
434
|
|
398
|
-
.yt-dialog__drag::before,
|
399
|
-
.yt-dialog__drag::after {
|
400
|
-
@apply absolute bg-grey-dark rounded;
|
401
|
-
content: '';
|
402
|
-
left: theme('spacing.1');
|
403
|
-
height: 2px;
|
404
|
-
width: calc(100% - (2 * theme('spacing.1')));
|
405
|
-
}
|
406
|
-
|
407
|
-
.yt-dialog__drag::before {
|
408
|
-
top: 3px;
|
409
|
-
}
|
410
|
-
|
411
|
-
.yt-dialog__drag::after {
|
412
|
-
bottom: 3px;
|
413
|
-
}
|
414
|
-
|
415
|
-
.yt-dialog *:last-child {
|
416
|
-
@apply mb-0;
|
417
|
-
}
|
418
|
-
|
419
|
-
[data-taco='group'] > [data-taco='badge'] + [data-taco='badge'] {
|
420
|
-
@apply ml-1;
|
421
|
-
}
|
422
|
-
|
423
|
-
[data-taco='group'] > *:not(:first-child):not([data-taco='hanger']) {
|
424
|
-
@apply ml-2;
|
425
|
-
}
|
426
|
-
|
427
435
|
.yt-form > [data-taco='button'] {
|
428
436
|
@apply mr-3;
|
429
437
|
}
|
430
438
|
|
431
439
|
.yt-form.yt-form--horizontal > * {
|
432
|
-
@apply inline-flex
|
440
|
+
@apply mr-3 inline-flex;
|
433
441
|
}
|
434
442
|
|
435
443
|
.yt-form.yt-form--horizontal > *:last-child {
|
@@ -440,21 +448,13 @@
|
|
440
448
|
@apply mt-6;
|
441
449
|
}
|
442
450
|
|
443
|
-
[data-taco='hanger'] a {
|
444
|
-
@apply text-grey underline;
|
445
|
-
}
|
446
|
-
|
447
|
-
[data-taco='hanger'] > *:last-child {
|
448
|
-
@apply mb-0;
|
449
|
-
}
|
450
|
-
|
451
451
|
/* label inside label is invalid html, but the client is littered with it */
|
452
452
|
[data-taco='label'] [data-taco='label'] {
|
453
453
|
min-height: 0;
|
454
454
|
}
|
455
455
|
|
456
456
|
.yt-listbox {
|
457
|
-
@apply
|
457
|
+
@apply relative inline-flex w-full bg-white;
|
458
458
|
}
|
459
459
|
|
460
460
|
.yt-listbox > input {
|
@@ -475,7 +475,7 @@
|
|
475
475
|
}
|
476
476
|
|
477
477
|
.yt-navigation__item .yt-navigation__item__prefix [data-taco='icon'] {
|
478
|
-
@apply
|
478
|
+
@apply -mt-1 -mb-1 text-xs;
|
479
479
|
margin-left: -0.375rem;
|
480
480
|
margin-right: 0.15rem;
|
481
481
|
}
|
@@ -509,15 +509,15 @@
|
|
509
509
|
}
|
510
510
|
|
511
511
|
[data-taco='select'] > button.yt-input {
|
512
|
-
@apply inline-flex items-center
|
512
|
+
@apply relative inline-flex w-full items-center px-0;
|
513
513
|
}
|
514
514
|
|
515
515
|
[data-taco='select'] > button.yt-input > span:first-child {
|
516
|
-
@apply flex-grow
|
516
|
+
@apply flex-grow truncate pl-2 text-left;
|
517
517
|
}
|
518
518
|
|
519
519
|
[data-taco='select'] > button.yt-input .yt-icon {
|
520
|
-
@apply pointer-events-none
|
520
|
+
@apply pointer-events-none;
|
521
521
|
}
|
522
522
|
|
523
523
|
[data-taco='select'] > button.yt-input[disabled] .yt-icon {
|
@@ -528,19 +528,13 @@
|
|
528
528
|
@apply cursor-not-allowed;
|
529
529
|
}
|
530
530
|
|
531
|
-
[data-taco='select']:hover > button.yt-input .yt-icon,
|
532
|
-
[data-taco='select'] > button.yt-input:hover .yt-icon,
|
533
|
-
[data-taco='select'] > button.yt-input .yt-icon:hover {
|
534
|
-
@apply text-grey-darkest;
|
535
|
-
}
|
536
|
-
|
537
531
|
[data-taco='select'] > button.yt-input[aria-expanded='true'],
|
538
532
|
[data-taco='select'] > button.yt-input[aria-expanded='true']:hover {
|
539
533
|
@apply border-blue;
|
540
534
|
}
|
541
535
|
|
542
536
|
[data-taco='select'] > button.yt-input[aria-expanded='true'] + .yt-listbox {
|
543
|
-
@apply
|
537
|
+
@apply mt-1 flex;
|
544
538
|
}
|
545
539
|
|
546
540
|
[data-taco='select'] [role='dialog'] {
|
@@ -584,81 +578,73 @@
|
|
584
578
|
}
|
585
579
|
|
586
580
|
.yt-table:focus {
|
587
|
-
@apply rounded-sm
|
581
|
+
@apply yt-focus rounded-sm;
|
588
582
|
}
|
589
583
|
|
590
584
|
/* rows */
|
591
585
|
.yt-table__row {
|
592
|
-
@apply border-
|
586
|
+
@apply border-grey-light flex border-b;
|
593
587
|
min-height: 2.5rem;
|
594
588
|
}
|
595
589
|
|
596
590
|
/* cells */
|
597
591
|
.yt-table__cell {
|
598
|
-
@apply flex-1 p-2
|
592
|
+
@apply flex-1 truncate p-2 text-center align-middle;
|
599
593
|
}
|
600
594
|
|
601
|
-
.yt-table__cell
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
.yt-table__cell > .yt-button,
|
606
|
-
.yt-table__cell .yt-group > .yt-button {
|
607
|
-
@apply -mt-1 -mb-1;
|
608
|
-
}
|
609
|
-
|
610
|
-
.yt-table__cell.yt-table__cell__actions .yt-group > *:not(:first-child):not(.yt-hanger):not(.yt-menu) {
|
611
|
-
@apply ml-0;
|
595
|
+
.yt-table__cell > [data-taco='button'],
|
596
|
+
.yt-table__cell > [data-taco='icon-button'] {
|
597
|
+
@apply -mt-1 -mb-1 flex;
|
612
598
|
}
|
613
599
|
|
614
600
|
.yt-table__cell.yt-table__cell--draggable {
|
615
601
|
@apply flex-col px-0;
|
616
602
|
}
|
617
603
|
|
618
|
-
.yt-table__cell.yt-table__cell--draggable
|
619
|
-
@apply
|
604
|
+
.yt-table__cell.yt-table__cell--draggable [data-taco='icon'] {
|
605
|
+
@apply text-grey-darkest invisible cursor-grab;
|
620
606
|
width: 20px;
|
621
607
|
}
|
622
608
|
|
623
|
-
.yt-table__row.yt-table__row--dragging .yt-table__cell.yt-table__cell--draggable
|
609
|
+
.yt-table__row.yt-table__row--dragging .yt-table__cell.yt-table__cell--draggable [data-taco='icon'] {
|
624
610
|
@apply text-white;
|
625
611
|
}
|
626
612
|
|
627
|
-
.yt-table__cell.yt-table__cell--draggable
|
613
|
+
.yt-table__cell.yt-table__cell--draggable [data-taco='icon']:active {
|
628
614
|
@apply cursor-grabbing;
|
629
615
|
}
|
630
616
|
|
631
|
-
.yt-table__row:hover .yt-table__cell.yt-table__cell--draggable
|
617
|
+
.yt-table__row:hover .yt-table__cell.yt-table__cell--draggable [data-taco='icon'] {
|
632
618
|
@apply visible;
|
633
619
|
}
|
634
620
|
|
635
621
|
/* head */
|
636
622
|
.yt-table__head .yt-table__row {
|
637
|
-
@apply border-t-0 border-b-2 font-bold
|
623
|
+
@apply h-auto w-full select-none border-t-0 border-b-2 font-bold;
|
638
624
|
}
|
639
625
|
|
640
626
|
.yt-table__head .yt-table__head__group {
|
641
|
-
@apply flex flex-
|
627
|
+
@apply flex flex-1 flex-wrap;
|
642
628
|
}
|
643
629
|
|
644
630
|
.yt-table__head .yt-table__head__group .yt-table__cell.yt-table__cell__group {
|
645
|
-
@apply border-
|
631
|
+
@apply border-grey-light border-b;
|
646
632
|
flex-basis: 100%;
|
647
633
|
}
|
648
634
|
|
649
635
|
.yt-table__head .yt-table__head__group + .yt-table__head__group {
|
650
|
-
@apply border-
|
636
|
+
@apply border-grey-light border-l;
|
651
637
|
}
|
652
638
|
|
653
639
|
.yt-table__head .yt-table__cell {
|
654
|
-
@apply
|
640
|
+
@apply text-grey-darkest flex justify-center;
|
655
641
|
}
|
656
642
|
|
657
643
|
.yt-table__head .yt-table__cell > span {
|
658
644
|
@apply truncate;
|
659
645
|
}
|
660
646
|
|
661
|
-
.yt-table__head .yt-table__cell >
|
647
|
+
.yt-table__head .yt-table__cell > [data-taco='icon'] {
|
662
648
|
@apply flex-shrink-0;
|
663
649
|
}
|
664
650
|
|
@@ -667,7 +653,7 @@
|
|
667
653
|
}
|
668
654
|
|
669
655
|
.yt-table__head .yt-table__cell.yt-table__cell__group + .yt-table__cell__group {
|
670
|
-
@apply border-
|
656
|
+
@apply border-grey-light border-l-2;
|
671
657
|
}
|
672
658
|
|
673
659
|
.yt-table__head .yt-table__cell:not(.yt-table__cell--disable-sort) {
|
@@ -723,39 +709,30 @@
|
|
723
709
|
overflow-wrap: normal;
|
724
710
|
}
|
725
711
|
|
726
|
-
.yt-table__cell
|
727
|
-
@apply
|
712
|
+
.yt-table__cell [data-taco='label'] {
|
713
|
+
@apply -my-2 pb-0 text-transparent;
|
728
714
|
min-height: theme('spacing.10');
|
729
715
|
}
|
730
716
|
|
731
|
-
.yt-table__cell
|
717
|
+
.yt-table__cell [data-taco='label'] > *:not([data-taco='label']__message) {
|
732
718
|
@apply mt-1;
|
733
719
|
}
|
734
720
|
|
735
|
-
.yt-table__body .yt-table__row.yt-table__row--editing .yt-table__cell
|
721
|
+
.yt-table__body .yt-table__row.yt-table__row--editing .yt-table__cell [data-taco='label'] > *:not([data-taco='label']__message) {
|
736
722
|
@apply -mt-5;
|
737
723
|
}
|
738
724
|
|
739
|
-
.yt-table__cell
|
725
|
+
.yt-table__cell [data-taco='label'] > [data-taco='label']__message {
|
740
726
|
@apply mb-1;
|
741
727
|
}
|
742
728
|
|
743
729
|
/* drag */
|
744
730
|
#yt-table__drag__placeholder {
|
745
|
-
@apply bg-blue
|
746
|
-
}
|
747
|
-
|
748
|
-
/* cell alignment */
|
749
|
-
.yt-table__cell.yt-table__cell--align-left {
|
750
|
-
@apply justify-start text-left;
|
751
|
-
}
|
752
|
-
|
753
|
-
.yt-table__cell.yt-table__cell--align-right {
|
754
|
-
@apply justify-end text-right;
|
731
|
+
@apply bg-blue flex w-3/12 rounded p-4 font-bold text-white;
|
755
732
|
}
|
756
733
|
|
757
734
|
.yt-tabs .yt-tab__list[aria-orientation='vertical'] {
|
758
|
-
@apply
|
735
|
+
@apply m-0 mr-4 flex-col border-0 border-r;
|
759
736
|
}
|
760
737
|
|
761
738
|
.yt-tabs .yt-tab__list .yt-tab[aria-selected='true'] {
|