@crystallize/design-system 1.24.11 → 1.24.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/index.css +37 -0
- package/dist/index.d.ts +11 -1
- package/dist/index.js +389 -322
- package/dist/index.mjs +129 -64
- package/package.json +3 -3
- package/src/index.ts +1 -0
- package/src/popover/popover.tsx +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @crystallize/design-system
|
|
2
2
|
|
|
3
|
+
## 1.24.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7b11867: Add popover to the exported components so I can be used.
|
|
8
|
+
|
|
9
|
+
## 1.24.12
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 7eb18e2: It was found that then a dialog has the modal prop set to true, after closing it in Safari the UI is not responsive. I guess radix was keeping the events and did not clear state after closing it. Upgrading to version 1.0.5 seems to fixed the issue.
|
|
14
|
+
|
|
3
15
|
## 1.24.11
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.css
CHANGED
|
@@ -1517,6 +1517,43 @@
|
|
|
1517
1517
|
fill: #fff;
|
|
1518
1518
|
}
|
|
1519
1519
|
|
|
1520
|
+
/* src/popover/popover.css */
|
|
1521
|
+
.c-popover-content {
|
|
1522
|
+
border-radius: 0.25rem;
|
|
1523
|
+
--tw-bg-opacity: 1;
|
|
1524
|
+
background-color: rgb(var(--c-color-elevate) / var(--tw-bg-opacity));
|
|
1525
|
+
font-size: 0.75rem;
|
|
1526
|
+
line-height: 1rem;
|
|
1527
|
+
--tw-text-opacity: 1;
|
|
1528
|
+
color: rgb(var(--c-color-gray-700-200) / var(--tw-text-opacity));
|
|
1529
|
+
--tw-shadow: 0 2px 4px rgba(130,138,144,0.15);
|
|
1530
|
+
--tw-shadow-colored: 0 2px 4px var(--tw-shadow-color);
|
|
1531
|
+
box-shadow:
|
|
1532
|
+
var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
1533
|
+
var(--tw-ring-shadow, 0 0 #0000),
|
|
1534
|
+
var(--tw-shadow);
|
|
1535
|
+
}
|
|
1536
|
+
.c-popover-content:focus-visible {
|
|
1537
|
+
outline: 2px solid transparent;
|
|
1538
|
+
outline-offset: 2px;
|
|
1539
|
+
}
|
|
1540
|
+
.c-popover-close {
|
|
1541
|
+
position: absolute;
|
|
1542
|
+
right: 0.25rem;
|
|
1543
|
+
top: 0.25rem;
|
|
1544
|
+
display: flex;
|
|
1545
|
+
cursor: pointer;
|
|
1546
|
+
align-items: center;
|
|
1547
|
+
justify-content: center;
|
|
1548
|
+
border-radius: 9999px;
|
|
1549
|
+
border-width: 0px;
|
|
1550
|
+
background-color: transparent;
|
|
1551
|
+
padding: 0.25rem;
|
|
1552
|
+
}
|
|
1553
|
+
.c-popover-arrow {
|
|
1554
|
+
fill: #fff;
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1520
1557
|
/* src/progress/progress.css */
|
|
1521
1558
|
.c-progress-root {
|
|
1522
1559
|
position: relative;
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import * as CollapsiblePrimitives from '@radix-ui/react-collapsible';
|
|
|
10
10
|
import { CollapsibleTriggerProps } from '@radix-ui/react-collapsible';
|
|
11
11
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
12
12
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
13
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
13
14
|
import * as ProgressPrimitives from '@radix-ui/react-progress';
|
|
14
15
|
import * as _radix_ui_react_select from '@radix-ui/react-select';
|
|
15
16
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
@@ -284,6 +285,15 @@ type LabelRef = HTMLLabelElement;
|
|
|
284
285
|
type LabelProps = LabelHTMLAttributes<LabelRef>;
|
|
285
286
|
declare const Label: react.ForwardRefExoticComponent<LabelProps & react.RefAttributes<HTMLLabelElement>>;
|
|
286
287
|
|
|
288
|
+
type PopoverProps = Pick<PopoverPrimitive.PopoverProps, 'open' | 'onOpenChange'> & Pick<PopoverPrimitive.PortalProps, 'container'> & PopoverPrimitive.PopperContentProps & {
|
|
289
|
+
children: ReactNode;
|
|
290
|
+
closeButton?: boolean | JSX.Element;
|
|
291
|
+
hasArrow?: boolean;
|
|
292
|
+
content: ReactNode;
|
|
293
|
+
onOpenAutoFocus?: (e: Event) => void;
|
|
294
|
+
};
|
|
295
|
+
declare function Popover({ children, closeButton, content, side, open, onOpenChange, className, container, hasArrow, ...delegatedContent }: PopoverProps): JSX.Element;
|
|
296
|
+
|
|
287
297
|
type ProgressProps = ProgressPrimitives.ProgressProps;
|
|
288
298
|
declare function Progress({ className, value }: ProgressProps): JSX.Element;
|
|
289
299
|
|
|
@@ -612,4 +622,4 @@ declare const tokens: {
|
|
|
612
622
|
card: string;
|
|
613
623
|
};
|
|
614
624
|
|
|
615
|
-
export { ActionMenu, Avatar, Button, ButtonProps, Card, Checkbox, CheckboxProps, CheckboxRef, Collapsible, CollapsibleTrigger, Container, CrystallizeRichText, CrystallizeRichTextActionMenuItem, Dialog, DropdownMenu, DropdownMenuRootProps, Icon, IconButton, IconButtonProps, InlineRadio, Input, InputWithLabel, Label, Progress, Radio, RichTextEditor, Select, Slider, Spinner, StackIcon, Switch, Tag, ToastProps, Tooltip, buttonTokens, cardToken, destroyAll, showConfirm, showDialog, showError, showInfo, showWarning, toast, tokens };
|
|
625
|
+
export { ActionMenu, Avatar, Button, ButtonProps, Card, Checkbox, CheckboxProps, CheckboxRef, Collapsible, CollapsibleTrigger, Container, CrystallizeRichText, CrystallizeRichTextActionMenuItem, Dialog, DropdownMenu, DropdownMenuRootProps, Icon, IconButton, IconButtonProps, InlineRadio, Input, InputWithLabel, Label, Popover, Progress, Radio, RichTextEditor, Select, Slider, Spinner, StackIcon, Switch, Tag, ToastProps, Tooltip, buttonTokens, cardToken, destroyAll, showConfirm, showDialog, showError, showInfo, showWarning, toast, tokens };
|