@ndla/primitives 0.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.
Files changed (97) hide show
  1. package/LICENSE +674 -0
  2. package/dist/panda.buildinfo.json +426 -0
  3. package/dist/styles.css +1738 -0
  4. package/es/Accordion.js +103 -0
  5. package/es/ArticleLists.js +106 -0
  6. package/es/Badge.js +55 -0
  7. package/es/BlockQuote.js +49 -0
  8. package/es/Button.js +211 -0
  9. package/es/Checkbox.js +118 -0
  10. package/es/Dialog.js +329 -0
  11. package/es/ExpandableBox.js +55 -0
  12. package/es/FieldErrorMessage.js +44 -0
  13. package/es/FieldHelper.js +37 -0
  14. package/es/FormControl.js +163 -0
  15. package/es/FramedContent.js +54 -0
  16. package/es/Icon.js +71 -0
  17. package/es/Input.js +159 -0
  18. package/es/Label.js +104 -0
  19. package/es/Menu.js +171 -0
  20. package/es/MessageBox.js +57 -0
  21. package/es/NdlaLogo.js +284 -0
  22. package/es/Pagination.js +37 -0
  23. package/es/Popover.js +78 -0
  24. package/es/RadioGroup.js +136 -0
  25. package/es/Skeleton.js +31 -0
  26. package/es/Slider.js +102 -0
  27. package/es/Spinner.js +54 -0
  28. package/es/Switch.js +130 -0
  29. package/es/Table.js +75 -0
  30. package/es/Text.js +54 -0
  31. package/es/Toast.js +82 -0
  32. package/es/Tooltip.js +59 -0
  33. package/es/createStyleContext.js +62 -0
  34. package/es/index.js +19 -0
  35. package/lib/Accordion.d.ts +17 -0
  36. package/lib/Accordion.js +109 -0
  37. package/lib/ArticleLists.d.ts +20 -0
  38. package/lib/ArticleLists.js +115 -0
  39. package/lib/Badge.d.ts +33 -0
  40. package/lib/Badge.js +62 -0
  41. package/lib/BlockQuote.d.ts +28 -0
  42. package/lib/BlockQuote.js +56 -0
  43. package/lib/Button.d.ts +131 -0
  44. package/lib/Button.js +217 -0
  45. package/lib/Checkbox.d.ts +15 -0
  46. package/lib/Checkbox.js +125 -0
  47. package/lib/Dialog.d.ts +107 -0
  48. package/lib/Dialog.js +338 -0
  49. package/lib/ExpandableBox.d.ts +12 -0
  50. package/lib/ExpandableBox.js +63 -0
  51. package/lib/FieldErrorMessage.d.ts +11 -0
  52. package/lib/FieldErrorMessage.js +50 -0
  53. package/lib/FieldHelper.d.ts +11 -0
  54. package/lib/FieldHelper.js +43 -0
  55. package/lib/FormControl.d.ts +65 -0
  56. package/lib/FormControl.js +173 -0
  57. package/lib/FramedContent.d.ts +32 -0
  58. package/lib/FramedContent.js +61 -0
  59. package/lib/Icon.d.ts +37 -0
  60. package/lib/Icon.js +78 -0
  61. package/lib/Input.d.ts +20 -0
  62. package/lib/Input.js +165 -0
  63. package/lib/Label.d.ts +16 -0
  64. package/lib/Label.js +110 -0
  65. package/lib/Menu.d.ts +25 -0
  66. package/lib/Menu.js +179 -0
  67. package/lib/MessageBox.d.ts +33 -0
  68. package/lib/MessageBox.js +64 -0
  69. package/lib/NdlaLogo.d.ts +15 -0
  70. package/lib/NdlaLogo.js +293 -0
  71. package/lib/Pagination.d.ts +14 -0
  72. package/lib/Pagination.js +43 -0
  73. package/lib/Popover.d.ts +22 -0
  74. package/lib/Popover.js +87 -0
  75. package/lib/RadioGroup.d.ts +19 -0
  76. package/lib/RadioGroup.js +143 -0
  77. package/lib/Skeleton.d.ts +11 -0
  78. package/lib/Skeleton.js +38 -0
  79. package/lib/Slider.d.ts +17 -0
  80. package/lib/Slider.js +109 -0
  81. package/lib/Spinner.d.ts +26 -0
  82. package/lib/Spinner.js +61 -0
  83. package/lib/Switch.d.ts +21 -0
  84. package/lib/Switch.js +137 -0
  85. package/lib/Table.d.ts +10 -0
  86. package/lib/Table.js +82 -0
  87. package/lib/Text.d.ts +24 -0
  88. package/lib/Text.js +62 -0
  89. package/lib/Toast.d.ts +18 -0
  90. package/lib/Toast.js +90 -0
  91. package/lib/Tooltip.d.ts +16 -0
  92. package/lib/Tooltip.js +65 -0
  93. package/lib/createStyleContext.d.ts +27 -0
  94. package/lib/createStyleContext.js +69 -0
  95. package/lib/index.d.ts +28 -0
  96. package/lib/index.js +130 -0
  97. package/package.json +48 -0
package/lib/index.js ADDED
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "BlockQuote", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _BlockQuote.BlockQuote;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "Button", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _Button.Button;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "ExpandableBox", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _ExpandableBox.ExpandableBox;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "ExpandableBoxSummary", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _ExpandableBox.ExpandableBoxSummary;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "Heading", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _Text.Heading;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "Icon", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _Icon.Icon;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "IconButton", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _Button.IconButton;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "Input", {
49
+ enumerable: true,
50
+ get: function () {
51
+ return _Input.Input;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "InputContainer", {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _Input.InputContainer;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "MessageBox", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _MessageBox.MessageBox;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "NdlaLogoEn", {
67
+ enumerable: true,
68
+ get: function () {
69
+ return _NdlaLogo.NdlaLogoEn;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "NdlaLogoNb", {
73
+ enumerable: true,
74
+ get: function () {
75
+ return _NdlaLogo.NdlaLogoNb;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "NdlaLogoText", {
79
+ enumerable: true,
80
+ get: function () {
81
+ return _NdlaLogo.NdlaLogoText;
82
+ }
83
+ });
84
+ Object.defineProperty(exports, "OrderedList", {
85
+ enumerable: true,
86
+ get: function () {
87
+ return _ArticleLists.OrderedList;
88
+ }
89
+ });
90
+ Object.defineProperty(exports, "Spinner", {
91
+ enumerable: true,
92
+ get: function () {
93
+ return _Spinner.Spinner;
94
+ }
95
+ });
96
+ Object.defineProperty(exports, "Table", {
97
+ enumerable: true,
98
+ get: function () {
99
+ return _Table.Table;
100
+ }
101
+ });
102
+ Object.defineProperty(exports, "Text", {
103
+ enumerable: true,
104
+ get: function () {
105
+ return _Text.Text;
106
+ }
107
+ });
108
+ Object.defineProperty(exports, "TextArea", {
109
+ enumerable: true,
110
+ get: function () {
111
+ return _Input.TextArea;
112
+ }
113
+ });
114
+ Object.defineProperty(exports, "UnOrderedList", {
115
+ enumerable: true,
116
+ get: function () {
117
+ return _ArticleLists.UnOrderedList;
118
+ }
119
+ });
120
+ var _BlockQuote = require("./BlockQuote");
121
+ var _Button = require("./Button");
122
+ var _ExpandableBox = require("./ExpandableBox");
123
+ var _Input = require("./Input");
124
+ var _ArticleLists = require("./ArticleLists");
125
+ var _Icon = require("./Icon");
126
+ var _NdlaLogo = require("./NdlaLogo");
127
+ var _Spinner = require("./Spinner");
128
+ var _Table = require("./Table");
129
+ var _Text = require("./Text");
130
+ var _MessageBox = require("./MessageBox");
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@ndla/primitives",
3
+ "version": "0.0.1",
4
+ "description": "Primitive components for NDLA",
5
+ "license": "GPL-3.0",
6
+ "main": "lib/index.js",
7
+ "module": "es/index.js",
8
+ "types": "lib/index.d.ts",
9
+ "sideEffects": false,
10
+ "scripts": {
11
+ "build": "node ../../scripts/build.js package",
12
+ "build:types": "tsc -p tsconfig.build.json",
13
+ "prepublish": "concurrently 'yarn build:types' 'mkdir -p dist' 'panda cssgen --minimal --outfile dist/styles.css' 'panda ship --outfile dist/panda.buildinfo.json'"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/NDLANO/frontend-packages.git",
18
+ "directory": "packages/primitives"
19
+ },
20
+ "keywords": [
21
+ "primitives",
22
+ "ndla"
23
+ ],
24
+ "author": "ndla@knowit.no",
25
+ "files": [
26
+ "dist",
27
+ "es",
28
+ "lib"
29
+ ],
30
+ "dependencies": {
31
+ "@ark-ui/anatomy": "^3.3.1",
32
+ "@ark-ui/react": "^3.3.0",
33
+ "@ndla/styled-system": "workspace:^",
34
+ "@ndla/util": "^4.0.4"
35
+ },
36
+ "devDependencies": {
37
+ "@ndla/preset-panda": "^0.0.1",
38
+ "@pandacss/dev": "^0.40.1"
39
+ },
40
+ "peerDependencies": {
41
+ "react": ">= 18",
42
+ "react-dom": ">= 18"
43
+ },
44
+ "publishConfig": {
45
+ "access": "public"
46
+ },
47
+ "gitHead": "06462ea8a1e84faedef361152994b7d48d4cd6e3"
48
+ }