@ndla/primitives 0.0.8 → 0.0.9
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/panda.buildinfo.json +10 -23
- package/dist/styles.css +20 -74
- package/es/Accordion.js +1 -2
- package/es/Checkbox.js +1 -2
- package/es/Dialog.js +1 -2
- package/es/Menu.js +1 -2
- package/es/Pagination.js +1 -2
- package/es/Popover.js +1 -2
- package/es/RadioGroup.js +1 -2
- package/es/Slider.js +1 -2
- package/es/Switch.js +1 -2
- package/es/Tabs.js +2 -3
- package/es/Toast.js +1 -2
- package/es/Tooltip.js +1 -2
- package/lib/Accordion.js +1 -2
- package/lib/Checkbox.js +1 -2
- package/lib/Dialog.js +1 -2
- package/lib/Menu.js +1 -2
- package/lib/Pagination.js +1 -2
- package/lib/Popover.js +1 -2
- package/lib/RadioGroup.js +1 -2
- package/lib/Slider.js +1 -2
- package/lib/Switch.js +1 -2
- package/lib/Tabs.js +1 -2
- package/lib/Toast.js +1 -2
- package/lib/Tooltip.js +1 -2
- package/package.json +6 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion": "0.
|
|
2
|
+
"schemaVersion": "0.41.0",
|
|
3
3
|
"styles": {
|
|
4
4
|
"atomic": [
|
|
5
5
|
"display]___[value:flex",
|
|
@@ -439,31 +439,11 @@
|
|
|
439
439
|
"textAlign]___[value:center]___[cond:& td, & th<___>&[data-align='center']",
|
|
440
440
|
"textAlign]___[value:left]___[cond:& td, & th<___>&[data-align='left']",
|
|
441
441
|
"textAlign]___[value:right]___[cond:& td, & th<___>&[data-align='right']",
|
|
442
|
-
"
|
|
443
|
-
"
|
|
444
|
-
"boxShadow]___[value:0 0 0 3px var(--shadow-color)]___[cond:_focusVisible",
|
|
445
|
-
"borderWidth]___[value:1px",
|
|
446
|
-
"padding]___[value:xsmall",
|
|
447
|
-
"outlineOffset]___[value:-3px]___[cond:_focusVisible",
|
|
448
|
-
"outlineColor]___[value:stroke.default]___[cond:_focusVisible",
|
|
442
|
+
"flexDirection]___[value:column]___[cond:_horizontal",
|
|
443
|
+
"flexDirection]___[value:row]___[cond:_vertical",
|
|
449
444
|
"overflow]___[value:auto",
|
|
450
445
|
"marginBlockEnd]___[value:-1px]___[cond:_horizontal",
|
|
451
446
|
"marginInlineEnd]___[value:-1px]___[cond:_vertical",
|
|
452
|
-
"flexDirection]___[value:column]___[cond:_horizontal",
|
|
453
|
-
"flexDirection]___[value:row]___[cond:_vertical",
|
|
454
|
-
"outline]___[value:4px solid",
|
|
455
|
-
"outlineColor]___[value:stroke.default",
|
|
456
|
-
"outlineOffset]___[value:-4px",
|
|
457
|
-
"height]___[value:var(--height)]___[cond:_peerFocusVisible",
|
|
458
|
-
"width]___[value:var(--width)]___[cond:_peerFocusVisible",
|
|
459
|
-
"borderTopRadius]___[value:xsmall]___[cond:_peerFocusVisible<___>_horizontal",
|
|
460
|
-
"borderRightRadius]___[value:xsmall]___[cond:_peerFocusVisible<___>_vertical",
|
|
461
|
-
"bottom]___[value:0]___[cond:_horizontal",
|
|
462
|
-
"height]___[value:2]___[cond:_horizontal",
|
|
463
|
-
"width]___[value:var(--width)]___[cond:_horizontal",
|
|
464
|
-
"height]___[value:var(--height)]___[cond:_vertical",
|
|
465
|
-
"left]___[value:0]___[cond:_vertical",
|
|
466
|
-
"width]___[value:2]___[cond:_vertical",
|
|
467
447
|
"transitionProperty]___[value:color, background, border-color",
|
|
468
448
|
"whiteSpace]___[value:nowrap",
|
|
469
449
|
"color]___[value:text.strong]___[cond:_selected",
|
|
@@ -476,6 +456,7 @@
|
|
|
476
456
|
"justifyContent]___[value:flex-start]___[cond:_vertical",
|
|
477
457
|
"borderRadius]___[value:unset]___[cond:_focusVisible",
|
|
478
458
|
"borderColor]___[value:transparent",
|
|
459
|
+
"borderWidth]___[value:1px",
|
|
479
460
|
"borderTopRadius]___[value:xsmall]___[cond:_horizontal",
|
|
480
461
|
"borderTopLeftRadius]___[value:xsmall]___[cond:_vertical",
|
|
481
462
|
"borderBottomLeftRadius]___[value:xsmall]___[cond:_vertical",
|
|
@@ -483,6 +464,12 @@
|
|
|
483
464
|
"borderColor]___[value:stroke.subtle]___[cond:_selected",
|
|
484
465
|
"borderBottomColor]___[value:transparent]___[cond:_selected<___>_horizontal",
|
|
485
466
|
"borderRightColor]___[value:transparent]___[cond:_selected<___>_vertical",
|
|
467
|
+
"outlineOffset]___[value:-3px]___[cond:_focusVisible",
|
|
468
|
+
"outlineColor]___[value:stroke.default]___[cond:_focusVisible",
|
|
469
|
+
"paddingBlockStart]___[value:xsmall]___[cond:_horizontal",
|
|
470
|
+
"paddingInlineStart]___[value:xsmall]___[cond:_vertical",
|
|
471
|
+
"boxShadow]___[value:0 0 0 3px var(--shadow-color)]___[cond:_focusVisible",
|
|
472
|
+
"padding]___[value:xsmall",
|
|
486
473
|
"textStyle]___[value:body.medium",
|
|
487
474
|
"textStyle]___[value:heading.medium",
|
|
488
475
|
"boxShadow]___[value:medium",
|
package/dist/styles.css
CHANGED
|
@@ -736,26 +736,18 @@
|
|
|
736
736
|
table-layout: fixed;
|
|
737
737
|
}
|
|
738
738
|
|
|
739
|
-
.p_xsmall {
|
|
740
|
-
padding: var(--spacing-xsmall);
|
|
741
|
-
}
|
|
742
|
-
|
|
743
739
|
.overflow_auto {
|
|
744
740
|
overflow: auto;
|
|
745
741
|
}
|
|
746
742
|
|
|
747
|
-
.ring_4px_solid {
|
|
748
|
-
outline: 4px solid;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
.ring-offset_-4px {
|
|
752
|
-
outline-offset: -4px;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
743
|
.white-space_nowrap {
|
|
756
744
|
white-space: nowrap;
|
|
757
745
|
}
|
|
758
746
|
|
|
747
|
+
.p_xsmall {
|
|
748
|
+
padding: var(--spacing-xsmall);
|
|
749
|
+
}
|
|
750
|
+
|
|
759
751
|
.shadow_medium {
|
|
760
752
|
box-shadow: var(--shadows-medium);
|
|
761
753
|
}
|
|
@@ -1049,14 +1041,6 @@
|
|
|
1049
1041
|
overflow-x: auto;
|
|
1050
1042
|
}
|
|
1051
1043
|
|
|
1052
|
-
.border-w_1px {
|
|
1053
|
-
border-width: 1px;
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
.ring-color_stroke\.default {
|
|
1057
|
-
outline-color: var(--colors-stroke-default);
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
1044
|
.transition-prop_color\,_background\,_border-color {
|
|
1061
1045
|
--transition-prop: color, background, border-color;
|
|
1062
1046
|
transition-property: color, background, border-color;
|
|
@@ -1066,6 +1050,10 @@
|
|
|
1066
1050
|
border-color: transparent;
|
|
1067
1051
|
}
|
|
1068
1052
|
|
|
1053
|
+
.border-w_1px {
|
|
1054
|
+
border-width: 1px;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1069
1057
|
.duration_slow {
|
|
1070
1058
|
--transition-duration: var(--durations-slow);
|
|
1071
1059
|
transition-duration: var(--durations-slow);
|
|
@@ -1381,14 +1369,6 @@
|
|
|
1381
1369
|
padding-block: var(--spacing-3xsmall);
|
|
1382
1370
|
}
|
|
1383
1371
|
|
|
1384
|
-
.horizontal\:pt_xsmall[data-orientation=horizontal] {
|
|
1385
|
-
padding-block-start: var(--spacing-xsmall);
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
.vertical\:ps_xsmall[data-orientation=vertical] {
|
|
1389
|
-
padding-inline-start: var(--spacing-xsmall);
|
|
1390
|
-
}
|
|
1391
|
-
|
|
1392
1372
|
.horizontal\:mb_-1px[data-orientation=horizontal] {
|
|
1393
1373
|
margin-block-end: -1px;
|
|
1394
1374
|
}
|
|
@@ -1397,22 +1377,6 @@
|
|
|
1397
1377
|
margin-inline-end: -1px;
|
|
1398
1378
|
}
|
|
1399
1379
|
|
|
1400
|
-
.horizontal\:h_2[data-orientation=horizontal] {
|
|
1401
|
-
height: var(--sizes-2);
|
|
1402
|
-
}
|
|
1403
|
-
|
|
1404
|
-
.horizontal\:w_var\(--width\)[data-orientation=horizontal] {
|
|
1405
|
-
width: var(--width);
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
.vertical\:h_var\(--height\)[data-orientation=vertical] {
|
|
1409
|
-
height: var(--height);
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
|
-
.vertical\:w_2[data-orientation=vertical] {
|
|
1413
|
-
width: var(--sizes-2);
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
1380
|
.selected\:text_text\.strong:is([aria-selected=true], [data-selected]) {
|
|
1417
1381
|
color: var(--colors-text-strong);
|
|
1418
1382
|
}
|
|
@@ -1434,6 +1398,14 @@
|
|
|
1434
1398
|
background: var(--colors-surface-default);
|
|
1435
1399
|
}
|
|
1436
1400
|
|
|
1401
|
+
.horizontal\:pt_xsmall[data-orientation=horizontal] {
|
|
1402
|
+
padding-block-start: var(--spacing-xsmall);
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
.vertical\:ps_xsmall[data-orientation=vertical] {
|
|
1406
|
+
padding-inline-start: var(--spacing-xsmall);
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1437
1409
|
.closed\:transition-prop_background\,_border-color\,_border\,_border-radius:is([closed], [data-closed], [data-state="closed"]) {
|
|
1438
1410
|
--transition-prop: background, border-color, border, border-radius;
|
|
1439
1411
|
transition-property: background, border-color, border, border-radius;
|
|
@@ -1527,14 +1499,6 @@
|
|
|
1527
1499
|
flex-direction: row;
|
|
1528
1500
|
}
|
|
1529
1501
|
|
|
1530
|
-
.horizontal\:bottom_0[data-orientation=horizontal] {
|
|
1531
|
-
bottom: 0;
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
.vertical\:left_0[data-orientation=vertical] {
|
|
1535
|
-
left: 0;
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
1502
|
.disabled\:border_stroke\.default:is(:disabled, [disabled], [data-disabled]) {
|
|
1539
1503
|
border-color: var(--colors-stroke-default);
|
|
1540
1504
|
}
|
|
@@ -1641,24 +1605,16 @@
|
|
|
1641
1605
|
outline-offset: 0px;
|
|
1642
1606
|
}
|
|
1643
1607
|
|
|
1644
|
-
.focusVisible\:
|
|
1645
|
-
|
|
1608
|
+
.focusVisible\:rounded_unset:is(:focus-visible, [data-focus-visible]) {
|
|
1609
|
+
border-radius: unset;
|
|
1646
1610
|
}
|
|
1647
1611
|
|
|
1648
1612
|
.focusVisible\:ring-offset_-3px:is(:focus-visible, [data-focus-visible]) {
|
|
1649
1613
|
outline-offset: -3px;
|
|
1650
1614
|
}
|
|
1651
1615
|
|
|
1652
|
-
.
|
|
1653
|
-
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
.peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:w_var\(--width\) {
|
|
1657
|
-
width: var(--width);
|
|
1658
|
-
}
|
|
1659
|
-
|
|
1660
|
-
.focusVisible\:rounded_unset:is(:focus-visible, [data-focus-visible]) {
|
|
1661
|
-
border-radius: unset;
|
|
1616
|
+
.focusVisible\:shadow_0_0_0_3px_var\(--shadow-color\):is(:focus-visible, [data-focus-visible]) {
|
|
1617
|
+
box-shadow: 0 0 0 3px var(--shadow-color);
|
|
1662
1618
|
}
|
|
1663
1619
|
|
|
1664
1620
|
.focus\:ring-color_stroke\.default:is(:focus, [data-focus]) {
|
|
@@ -1913,16 +1869,6 @@
|
|
|
1913
1869
|
text-align: right;
|
|
1914
1870
|
}
|
|
1915
1871
|
|
|
1916
|
-
.peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:horizontal\:rounded-t_xsmall[data-orientation=horizontal] {
|
|
1917
|
-
border-top-left-radius: var(--radii-xsmall);
|
|
1918
|
-
border-top-right-radius: var(--radii-xsmall);
|
|
1919
|
-
}
|
|
1920
|
-
|
|
1921
|
-
.peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:vertical\:rounded-r_xsmall[data-orientation=vertical] {
|
|
1922
|
-
border-top-right-radius: var(--radii-xsmall);
|
|
1923
|
-
border-bottom-right-radius: var(--radii-xsmall);
|
|
1924
|
-
}
|
|
1925
|
-
|
|
1926
1872
|
.disabled\:hover\:text_text\.subtle:is(:disabled, [disabled], [data-disabled]):is(:hover, [data-hover]) {
|
|
1927
1873
|
color: var(--colors-text-subtle);
|
|
1928
1874
|
}
|
package/es/Accordion.js
CHANGED
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { accordionAnatomy } from "@ark-ui/
|
|
10
|
-
import { Accordion } from "@ark-ui/react";
|
|
9
|
+
import { Accordion, accordionAnatomy } from "@ark-ui/react";
|
|
11
10
|
import { sva } from "@ndla/styled-system/css";
|
|
12
11
|
import { createStyleContext } from "./createStyleContext";
|
|
13
12
|
const accordionRecipe = sva({
|
package/es/Checkbox.js
CHANGED
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { checkboxAnatomy } from "@ark-ui/
|
|
10
|
-
import { Checkbox } from "@ark-ui/react";
|
|
9
|
+
import { Checkbox, checkboxAnatomy } from "@ark-ui/react";
|
|
11
10
|
import { sva } from "@ndla/styled-system/css";
|
|
12
11
|
import { createStyleContext } from "./createStyleContext";
|
|
13
12
|
import { Text } from "./Text";
|
package/es/Dialog.js
CHANGED
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { forwardRef } from "react";
|
|
10
|
-
import { dialogAnatomy } from "@ark-ui/
|
|
11
|
-
import { Dialog } from "@ark-ui/react";
|
|
10
|
+
import { Dialog, dialogAnatomy } from "@ark-ui/react";
|
|
12
11
|
import { sva } from "@ndla/styled-system/css";
|
|
13
12
|
import { styled } from "@ndla/styled-system/jsx";
|
|
14
13
|
import { createStyleContext } from "./createStyleContext";
|
package/es/Menu.js
CHANGED
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { forwardRef } from "react";
|
|
10
|
-
import { menuAnatomy } from "@ark-ui/
|
|
11
|
-
import { Menu } from "@ark-ui/react";
|
|
10
|
+
import { Menu, menuAnatomy } from "@ark-ui/react";
|
|
12
11
|
import { css, cva, sva } from "@ndla/styled-system/css";
|
|
13
12
|
import { createStyleContext } from "./createStyleContext";
|
|
14
13
|
import { Text } from "./Text";
|
package/es/Pagination.js
CHANGED
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { paginationAnatomy } from "@ark-ui/
|
|
10
|
-
import { Pagination } from "@ark-ui/react";
|
|
9
|
+
import { Pagination, paginationAnatomy } from "@ark-ui/react";
|
|
11
10
|
import { sva } from "@ndla/styled-system/css";
|
|
12
11
|
import { createStyleContext } from "./createStyleContext";
|
|
13
12
|
const paginationRecipe = sva({
|
package/es/Popover.js
CHANGED
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { popoverAnatomy } from "@ark-ui/
|
|
10
|
-
import { Popover } from "@ark-ui/react";
|
|
9
|
+
import { Popover, popoverAnatomy } from "@ark-ui/react";
|
|
11
10
|
import { sva } from "@ndla/styled-system/css";
|
|
12
11
|
import { createStyleContext } from "./createStyleContext";
|
|
13
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
package/es/RadioGroup.js
CHANGED
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { forwardRef } from "react";
|
|
10
|
-
import { radioGroupAnatomy } from "@ark-ui/
|
|
11
|
-
import { RadioGroup } from "@ark-ui/react";
|
|
10
|
+
import { RadioGroup, radioGroupAnatomy } from "@ark-ui/react";
|
|
12
11
|
import { sva } from "@ndla/styled-system/css";
|
|
13
12
|
import { createStyleContext } from "./createStyleContext";
|
|
14
13
|
import { Label } from "./Label";
|
package/es/Slider.js
CHANGED
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { sliderAnatomy } from "@ark-ui/
|
|
10
|
-
import { Slider } from "@ark-ui/react";
|
|
9
|
+
import { Slider, sliderAnatomy } from "@ark-ui/react";
|
|
11
10
|
import { sva } from "@ndla/styled-system/css";
|
|
12
11
|
import { createStyleContext } from "./createStyleContext";
|
|
13
12
|
import { Label } from "./Label";
|
package/es/Switch.js
CHANGED
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { switchAnatomy } from "@ark-ui/
|
|
10
|
-
import { Switch } from "@ark-ui/react";
|
|
9
|
+
import { Switch, switchAnatomy } from "@ark-ui/react";
|
|
11
10
|
import { sva } from "@ndla/styled-system/css";
|
|
12
11
|
import { createStyleContext } from "./createStyleContext";
|
|
13
12
|
import { Text } from "./Text";
|
package/es/Tabs.js
CHANGED
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { Tabs } from "@ark-ui/react";
|
|
9
|
+
import { Tabs, tabsAnatomy } from "@ark-ui/react";
|
|
10
10
|
import { cx, sva } from "@ndla/styled-system/css";
|
|
11
11
|
import { createStyleContext } from "./createStyleContext";
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
const tabsRecipe = sva({
|
|
14
|
-
|
|
15
|
-
slots: ["content", "list", "root", "indicator", "trigger"],
|
|
14
|
+
slots: tabsAnatomy.keys(),
|
|
16
15
|
base: {
|
|
17
16
|
root: {
|
|
18
17
|
position: "relative",
|
package/es/Toast.js
CHANGED
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { toastAnatomy } from "@ark-ui/
|
|
10
|
-
import { Toast } from "@ark-ui/react";
|
|
9
|
+
import { Toast, toastAnatomy } from "@ark-ui/react";
|
|
11
10
|
import { sva } from "@ndla/styled-system/css";
|
|
12
11
|
import { createStyleContext } from "./createStyleContext";
|
|
13
12
|
import { Text } from "./Text";
|
package/es/Tooltip.js
CHANGED
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { forwardRef } from "react";
|
|
10
|
-
import { tooltipAnatomy } from "@ark-ui/
|
|
11
|
-
import { Tooltip } from "@ark-ui/react";
|
|
10
|
+
import { Tooltip, tooltipAnatomy } from "@ark-ui/react";
|
|
12
11
|
import { sva } from "@ndla/styled-system/css";
|
|
13
12
|
import { createStyleContext } from "./createStyleContext";
|
|
14
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
package/lib/Accordion.js
CHANGED
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.AccordionRoot = exports.AccordionItemTrigger = exports.AccordionItemIndicator = exports.AccordionItemContent = exports.AccordionItem = void 0;
|
|
7
|
-
var _anatomy = require("@ark-ui/anatomy");
|
|
8
7
|
var _react = require("@ark-ui/react");
|
|
9
8
|
var _css = require("@ndla/styled-system/css");
|
|
10
9
|
var _createStyleContext = require("./createStyleContext");
|
|
@@ -17,7 +16,7 @@ var _createStyleContext = require("./createStyleContext");
|
|
|
17
16
|
*/
|
|
18
17
|
|
|
19
18
|
const accordionRecipe = (0, _css.sva)({
|
|
20
|
-
slots:
|
|
19
|
+
slots: _react.accordionAnatomy.keys(),
|
|
21
20
|
base: {
|
|
22
21
|
root: {
|
|
23
22
|
display: "flex",
|
package/lib/Checkbox.js
CHANGED
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.CheckboxRoot = exports.CheckboxLabel = exports.CheckboxIndicator = exports.CheckboxHiddenInput = exports.CheckboxGroup = exports.CheckboxControl = void 0;
|
|
7
|
-
var _anatomy = require("@ark-ui/anatomy");
|
|
8
7
|
var _react = require("@ark-ui/react");
|
|
9
8
|
var _css = require("@ndla/styled-system/css");
|
|
10
9
|
var _createStyleContext = require("./createStyleContext");
|
|
@@ -19,7 +18,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
19
18
|
*/
|
|
20
19
|
|
|
21
20
|
const checkboxRecipe = (0, _css.sva)({
|
|
22
|
-
slots:
|
|
21
|
+
slots: _react.checkboxAnatomy.keys(),
|
|
23
22
|
base: {
|
|
24
23
|
root: {
|
|
25
24
|
userSelect: "none",
|
package/lib/Dialog.js
CHANGED
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.InternalDialogRoot = exports.DialogTrigger = exports.DialogTitle = exports.DialogStandaloneContent = exports.DialogRoot = exports.DialogPositioner = exports.DialogHeader = exports.DialogDescription = exports.DialogContent = exports.DialogCloseTrigger = exports.DialogBody = exports.DialogBackdrop = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var _anatomy = require("@ark-ui/anatomy");
|
|
9
8
|
var _react2 = require("@ark-ui/react");
|
|
10
9
|
var _css = require("@ndla/styled-system/css");
|
|
11
10
|
var _jsx2 = require("@ndla/styled-system/jsx");
|
|
@@ -21,7 +20,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
21
20
|
*/
|
|
22
21
|
|
|
23
22
|
const dialogRecipe = (0, _css.sva)({
|
|
24
|
-
slots:
|
|
23
|
+
slots: _react2.dialogAnatomy.keys(),
|
|
25
24
|
base: {
|
|
26
25
|
backdrop: {
|
|
27
26
|
position: "fixed",
|
package/lib/Menu.js
CHANGED
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.MenuTriggerItem = exports.MenuTrigger = exports.MenuSeparator = exports.MenuRoot = exports.MenuPositioner = exports.MenuItemGroupLabel = exports.MenuItemGroup = exports.MenuItem = exports.MenuContent = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var _anatomy = require("@ark-ui/anatomy");
|
|
9
8
|
var _react2 = require("@ark-ui/react");
|
|
10
9
|
var _css = require("@ndla/styled-system/css");
|
|
11
10
|
var _createStyleContext = require("./createStyleContext");
|
|
@@ -98,7 +97,7 @@ const itemCva = (0, _css.cva)({
|
|
|
98
97
|
}
|
|
99
98
|
});
|
|
100
99
|
const menuRecipe = (0, _css.sva)({
|
|
101
|
-
slots:
|
|
100
|
+
slots: _react2.menuAnatomy.keys(),
|
|
102
101
|
base: {
|
|
103
102
|
item: itemStyle,
|
|
104
103
|
triggerItem: itemStyle,
|
package/lib/Pagination.js
CHANGED
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.PaginationRoot = exports.PaginationPrevTrigger = exports.PaginationNextTrigger = exports.PaginationItem = exports.PaginationEllipsis = void 0;
|
|
7
|
-
var _anatomy = require("@ark-ui/anatomy");
|
|
8
7
|
var _react = require("@ark-ui/react");
|
|
9
8
|
var _css = require("@ndla/styled-system/css");
|
|
10
9
|
var _createStyleContext = require("./createStyleContext");
|
|
@@ -17,7 +16,7 @@ var _createStyleContext = require("./createStyleContext");
|
|
|
17
16
|
*/
|
|
18
17
|
|
|
19
18
|
const paginationRecipe = (0, _css.sva)({
|
|
20
|
-
slots:
|
|
19
|
+
slots: _react.paginationAnatomy.keys(),
|
|
21
20
|
base: {
|
|
22
21
|
root: {
|
|
23
22
|
display: "flex",
|
package/lib/Popover.js
CHANGED
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.PopoverTrigger = exports.PopoverTitle = exports.PopoverRoot = exports.PopoverPositioner = exports.PopoverIndicator = exports.PopoverDescription = exports.PopoverContentStandalone = exports.PopoverContent = exports.PopoverCloseTrigger = exports.PopoverArrowTip = exports.PopoverArrowStandalone = exports.PopoverArrow = exports.PopoverAnchor = void 0;
|
|
7
|
-
var _anatomy = require("@ark-ui/anatomy");
|
|
8
7
|
var _react = require("@ark-ui/react");
|
|
9
8
|
var _css = require("@ndla/styled-system/css");
|
|
10
9
|
var _createStyleContext = require("./createStyleContext");
|
|
@@ -18,7 +17,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
18
17
|
*/
|
|
19
18
|
|
|
20
19
|
const popoverRecipe = (0, _css.sva)({
|
|
21
|
-
slots:
|
|
20
|
+
slots: _react.popoverAnatomy.keys(),
|
|
22
21
|
base: {
|
|
23
22
|
positioner: {
|
|
24
23
|
position: "relative"
|
package/lib/RadioGroup.js
CHANGED
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.RadioGroupRoot = exports.RadioGroupLabel = exports.RadioGroupItemText = exports.RadioGroupItemHiddenInput = exports.RadioGroupItemControl = exports.RadioGroupItem = exports.RadioGroupIndicator = exports.InternalRadioGroupLabel = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var _anatomy = require("@ark-ui/anatomy");
|
|
9
8
|
var _react2 = require("@ark-ui/react");
|
|
10
9
|
var _css = require("@ndla/styled-system/css");
|
|
11
10
|
var _createStyleContext = require("./createStyleContext");
|
|
@@ -21,7 +20,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
21
20
|
*/
|
|
22
21
|
|
|
23
22
|
const radioGroupRecipe = (0, _css.sva)({
|
|
24
|
-
slots:
|
|
23
|
+
slots: _react2.radioGroupAnatomy.keys(),
|
|
25
24
|
base: {
|
|
26
25
|
root: {
|
|
27
26
|
display: "flex",
|
package/lib/Slider.js
CHANGED
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SliderTrack = exports.SliderThumb = exports.SliderRoot = exports.SliderRange = exports.SliderLabel = exports.SliderHiddenInput = exports.SliderControl = void 0;
|
|
7
|
-
var _anatomy = require("@ark-ui/anatomy");
|
|
8
7
|
var _react = require("@ark-ui/react");
|
|
9
8
|
var _css = require("@ndla/styled-system/css");
|
|
10
9
|
var _createStyleContext = require("./createStyleContext");
|
|
@@ -19,7 +18,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
19
18
|
*/
|
|
20
19
|
|
|
21
20
|
const sliderRecipe = (0, _css.sva)({
|
|
22
|
-
slots:
|
|
21
|
+
slots: _react.sliderAnatomy.keys(),
|
|
23
22
|
base: {
|
|
24
23
|
root: {
|
|
25
24
|
display: "flex",
|
package/lib/Switch.js
CHANGED
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SwitchThumb = exports.SwitchRoot = exports.SwitchLabel = exports.SwitchHiddenInput = exports.SwitchControl = void 0;
|
|
7
|
-
var _anatomy = require("@ark-ui/anatomy");
|
|
8
7
|
var _react = require("@ark-ui/react");
|
|
9
8
|
var _css = require("@ndla/styled-system/css");
|
|
10
9
|
var _createStyleContext = require("./createStyleContext");
|
|
@@ -19,7 +18,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
19
18
|
*/
|
|
20
19
|
|
|
21
20
|
const switchRecipe = (0, _css.sva)({
|
|
22
|
-
slots:
|
|
21
|
+
slots: _react.switchAnatomy.keys(),
|
|
23
22
|
base: {
|
|
24
23
|
root: {
|
|
25
24
|
display: "inline-flex",
|
package/lib/Tabs.js
CHANGED
|
@@ -17,8 +17,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
const tabsRecipe = (0, _css.sva)({
|
|
20
|
-
|
|
21
|
-
slots: ["content", "list", "root", "indicator", "trigger"],
|
|
20
|
+
slots: _react.tabsAnatomy.keys(),
|
|
22
21
|
base: {
|
|
23
22
|
root: {
|
|
24
23
|
position: "relative",
|
package/lib/Toast.js
CHANGED
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ToastTitle = exports.ToastRoot = exports.ToastDescription = exports.ToastCloseTrigger = exports.ToastActionTrigger = void 0;
|
|
7
|
-
var _anatomy = require("@ark-ui/anatomy");
|
|
8
7
|
var _react = require("@ark-ui/react");
|
|
9
8
|
var _css = require("@ndla/styled-system/css");
|
|
10
9
|
var _createStyleContext = require("./createStyleContext");
|
|
@@ -19,7 +18,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
19
18
|
*/
|
|
20
19
|
|
|
21
20
|
const toastRecipe = (0, _css.sva)({
|
|
22
|
-
slots:
|
|
21
|
+
slots: _react.toastAnatomy.keys(),
|
|
23
22
|
base: {
|
|
24
23
|
root: {
|
|
25
24
|
position: "relative",
|
package/lib/Tooltip.js
CHANGED
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.TooltipTrigger = exports.TooltipRoot = exports.TooltipPositioner = exports.TooltipContentStandalone = exports.TooltipContent = exports.TooltipArrowTip = exports.TooltipArrow = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var _anatomy = require("@ark-ui/anatomy");
|
|
9
8
|
var _react2 = require("@ark-ui/react");
|
|
10
9
|
var _css = require("@ndla/styled-system/css");
|
|
11
10
|
var _createStyleContext = require("./createStyleContext");
|
|
@@ -19,7 +18,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
19
18
|
*/
|
|
20
19
|
|
|
21
20
|
const tooltipRecipe = (0, _css.sva)({
|
|
22
|
-
slots:
|
|
21
|
+
slots: _react2.tooltipAnatomy.keys(),
|
|
23
22
|
base: {
|
|
24
23
|
content: {
|
|
25
24
|
background: "surface.action",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/primitives",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "Primitive components for NDLA",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -28,14 +28,13 @@
|
|
|
28
28
|
"lib"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@ark-ui/
|
|
32
|
-
"@
|
|
33
|
-
"@ndla/styled-system": "workspace:^",
|
|
31
|
+
"@ark-ui/react": "^3.5.0",
|
|
32
|
+
"@ndla/styled-system": "^0.0.2",
|
|
34
33
|
"@ndla/util": "^4.0.4"
|
|
35
34
|
},
|
|
36
35
|
"devDependencies": {
|
|
37
|
-
"@ndla/preset-panda": "^0.0.
|
|
38
|
-
"@pandacss/dev": "^0.
|
|
36
|
+
"@ndla/preset-panda": "^0.0.6",
|
|
37
|
+
"@pandacss/dev": "^0.41.0"
|
|
39
38
|
},
|
|
40
39
|
"peerDependencies": {
|
|
41
40
|
"react": ">= 18",
|
|
@@ -44,5 +43,5 @@
|
|
|
44
43
|
"publishConfig": {
|
|
45
44
|
"access": "public"
|
|
46
45
|
},
|
|
47
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "c054ec2244c546389fa9fbdd36a0184e3dc61870"
|
|
48
47
|
}
|