@projectdiscoveryio/design-system 1.0.0 → 1.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/dist/styles.css CHANGED
@@ -774,18 +774,31 @@ html body.pd-root,
774
774
  white-space: nowrap;
775
775
  border-width: 0;
776
776
  }
777
+ .pd-pointer-events-none {
778
+ pointer-events: none;
779
+ }
777
780
  .pd-absolute {
778
781
  position: absolute;
779
782
  }
780
783
  .pd-relative {
781
784
  position: relative;
782
785
  }
786
+ .pd-inset-y-0 {
787
+ top: 0em;
788
+ bottom: 0em;
789
+ }
783
790
  .pd-bottom-1 {
784
791
  bottom: 0.25em;
785
792
  }
793
+ .pd-left-0 {
794
+ left: 0em;
795
+ }
786
796
  .pd-left-1\/2 {
787
797
  left: 50%;
788
798
  }
799
+ .pd-right-0 {
800
+ right: 0em;
801
+ }
789
802
  .pd-m-0 {
790
803
  margin: 0em;
791
804
  }
@@ -793,9 +806,21 @@ html body.pd-root,
793
806
  margin-left: auto;
794
807
  margin-right: auto;
795
808
  }
809
+ .pd-mb-10 {
810
+ margin-bottom: 2.5em;
811
+ }
796
812
  .pd-mb-2 {
797
813
  margin-bottom: 0.5em;
798
814
  }
815
+ .pd-mb-4 {
816
+ margin-bottom: 1em;
817
+ }
818
+ .pd-mb-6 {
819
+ margin-bottom: 1.5em;
820
+ }
821
+ .pd-mb-8 {
822
+ margin-bottom: 2em;
823
+ }
799
824
  .pd-ml-2 {
800
825
  margin-left: 0.5em;
801
826
  }
@@ -805,6 +830,9 @@ html body.pd-root,
805
830
  .pd-mt-2 {
806
831
  margin-top: 0.5em;
807
832
  }
833
+ .pd-block {
834
+ display: block;
835
+ }
808
836
  .pd-flex {
809
837
  display: flex;
810
838
  }
@@ -826,6 +854,9 @@ html body.pd-root,
826
854
  .pd-h-5 {
827
855
  height: 1.25em;
828
856
  }
857
+ .pd-h-6 {
858
+ height: 1.5em;
859
+ }
829
860
  .pd-h-8 {
830
861
  height: 2em;
831
862
  }
@@ -835,6 +866,9 @@ html body.pd-root,
835
866
  .pd-min-h-screen {
836
867
  min-height: 100vh;
837
868
  }
869
+ .pd-w-1 {
870
+ width: 0.25em;
871
+ }
838
872
  .pd-w-3 {
839
873
  width: 0.75em;
840
874
  }
@@ -844,15 +878,39 @@ html body.pd-root,
844
878
  .pd-w-5 {
845
879
  width: 1.25em;
846
880
  }
881
+ .pd-w-6 {
882
+ width: 1.5em;
883
+ }
884
+ .pd-w-\[20\%\] {
885
+ width: 20%;
886
+ }
887
+ .pd-w-\[25\%\] {
888
+ width: 25%;
889
+ }
890
+ .pd-w-\[35\%\] {
891
+ width: 35%;
892
+ }
893
+ .pd-w-\[40\%\] {
894
+ width: 40%;
895
+ }
847
896
  .pd-w-full {
848
897
  width: 100%;
849
898
  }
899
+ .pd-max-w-2xl {
900
+ max-width: 42rem;
901
+ }
902
+ .pd-max-w-6xl {
903
+ max-width: 72rem;
904
+ }
850
905
  .pd-max-w-\[1400px\] {
851
906
  max-width: 1400px;
852
907
  }
853
908
  .pd-max-w-md {
854
909
  max-width: 28rem;
855
910
  }
911
+ .pd-border-collapse {
912
+ border-collapse: collapse;
913
+ }
856
914
  .pd--translate-x-1\/2 {
857
915
  --tw-translate-x: -50%;
858
916
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
@@ -928,9 +986,20 @@ html body.pd-root,
928
986
  margin-top: calc(1em * calc(1 - var(--tw-space-y-reverse)));
929
987
  margin-bottom: calc(1em * var(--tw-space-y-reverse));
930
988
  }
989
+ .pd-divide-y > :not([hidden]) ~ :not([hidden]) {
990
+ --tw-divide-y-reverse: 0;
991
+ border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
992
+ border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
993
+ }
994
+ .pd-divide-\[var\(--pd-border-secondary\)\] > :not([hidden]) ~ :not([hidden]) {
995
+ border-color: var(--pd-border-secondary);
996
+ }
931
997
  .pd-overflow-auto {
932
998
  overflow: auto;
933
999
  }
1000
+ .pd-overflow-hidden {
1001
+ overflow: hidden;
1002
+ }
934
1003
  .pd-whitespace-nowrap {
935
1004
  white-space: nowrap;
936
1005
  }
@@ -952,12 +1021,18 @@ html body.pd-root,
952
1021
  .pd-rounded-sm {
953
1022
  border-radius: calc(var(--pd-radius) - 0.25em);
954
1023
  }
1024
+ .pd-rounded-xl {
1025
+ border-radius: 0.75rem;
1026
+ }
955
1027
  .pd-border {
956
1028
  border-width: 1px;
957
1029
  }
958
1030
  .pd-border-0 {
959
1031
  border-width: 0px;
960
1032
  }
1033
+ .pd-border-b {
1034
+ border-bottom-width: 1px;
1035
+ }
961
1036
  .pd-border-\[var\(--pd-border-red\)\] {
962
1037
  border-color: var(--pd-border-red);
963
1038
  }
@@ -991,9 +1066,21 @@ html body.pd-root,
991
1066
  .pd-bg-\[var\(--pd-background-red-on-hover\)\] {
992
1067
  background-color: var(--pd-background-red-on-hover);
993
1068
  }
1069
+ .pd-bg-\[var\(--pd-background-secondary\)\] {
1070
+ background-color: var(--pd-background-secondary);
1071
+ }
1072
+ .pd-bg-\[var\(--pd-background-system\)\] {
1073
+ background-color: var(--pd-background-system);
1074
+ }
994
1075
  .pd-bg-\[var\(--pd-background-tertiary\)\] {
995
1076
  background-color: var(--pd-background-tertiary);
996
1077
  }
1078
+ .pd-bg-\[var\(--pd-border-blue\)\] {
1079
+ background-color: var(--pd-border-blue);
1080
+ }
1081
+ .pd-bg-\[var\(--pd-content-subtle\)\] {
1082
+ background-color: var(--pd-content-subtle);
1083
+ }
997
1084
  .pd-bg-\[var\(--pd-intent-danger-bg\)\] {
998
1085
  background-color: var(--pd-intent-danger-bg);
999
1086
  }
@@ -1018,6 +1105,13 @@ html body.pd-root,
1018
1105
  .pd-p-5 {
1019
1106
  padding: 1.25em;
1020
1107
  }
1108
+ .pd-p-8 {
1109
+ padding: 2em;
1110
+ }
1111
+ .pd-px-2 {
1112
+ padding-left: 0.5em;
1113
+ padding-right: 0.5em;
1114
+ }
1021
1115
  .pd-px-3 {
1022
1116
  padding-left: 0.75em;
1023
1117
  padding-right: 0.75em;
@@ -1046,12 +1140,39 @@ html body.pd-root,
1046
1140
  padding-top: 1em;
1047
1141
  padding-bottom: 1em;
1048
1142
  }
1143
+ .pd-pl-3 {
1144
+ padding-left: 0.75em;
1145
+ }
1146
+ .pd-pr-2 {
1147
+ padding-right: 0.5em;
1148
+ }
1149
+ .pd-text-left {
1150
+ text-align: left;
1151
+ }
1049
1152
  .pd-text-center {
1050
1153
  text-align: center;
1051
1154
  }
1155
+ .pd-font-mono {
1156
+ font-family:
1157
+ ui-monospace,
1158
+ SFMono-Regular,
1159
+ Menlo,
1160
+ Monaco,
1161
+ Consolas,
1162
+ "Liberation Mono",
1163
+ "Courier New",
1164
+ monospace;
1165
+ }
1166
+ .pd-text-4xl {
1167
+ font-size: 2.25em;
1168
+ line-height: 2.5em;
1169
+ }
1052
1170
  .pd-text-\[10px\] {
1053
1171
  font-size: 10px;
1054
1172
  }
1173
+ .pd-text-\[11px\] {
1174
+ font-size: 11px;
1175
+ }
1055
1176
  .pd-text-base {
1056
1177
  font-size: 1em;
1057
1178
  line-height: 1.5em;
@@ -1064,10 +1185,17 @@ html body.pd-root,
1064
1185
  font-size: 0.875em;
1065
1186
  line-height: 1.25em;
1066
1187
  }
1188
+ .pd-text-xl {
1189
+ font-size: 1.25em;
1190
+ line-height: 1.75em;
1191
+ }
1067
1192
  .pd-text-xs {
1068
1193
  font-size: 0.75em;
1069
1194
  line-height: 1em;
1070
1195
  }
1196
+ .pd-font-black {
1197
+ font-weight: 900;
1198
+ }
1071
1199
  .pd-font-bold {
1072
1200
  font-weight: 700;
1073
1201
  }
@@ -1077,12 +1205,30 @@ html body.pd-root,
1077
1205
  .pd-font-semibold {
1078
1206
  font-weight: 600;
1079
1207
  }
1208
+ .pd-uppercase {
1209
+ text-transform: uppercase;
1210
+ }
1080
1211
  .pd-leading-normal {
1081
1212
  line-height: 1.5;
1082
1213
  }
1214
+ .pd-leading-relaxed {
1215
+ line-height: 1.625;
1216
+ }
1217
+ .pd-tracking-tight {
1218
+ letter-spacing: -0.025em;
1219
+ }
1220
+ .pd-tracking-tighter {
1221
+ letter-spacing: -0.05em;
1222
+ }
1223
+ .pd-tracking-widest {
1224
+ letter-spacing: 0.1em;
1225
+ }
1083
1226
  .pd-text-\[var\(--pd-content-on-color\)\] {
1084
1227
  color: var(--pd-content-on-color);
1085
1228
  }
1229
+ .pd-text-\[var\(--pd-content-primary\)\] {
1230
+ color: var(--pd-content-primary);
1231
+ }
1086
1232
  .pd-text-\[var\(--pd-content-red\)\] {
1087
1233
  color: var(--pd-content-red);
1088
1234
  }
@@ -1110,6 +1256,20 @@ html body.pd-root,
1110
1256
  .pd-text-\[var\(--pd-intent-warning-text\)\] {
1111
1257
  color: var(--pd-intent-warning-text);
1112
1258
  }
1259
+ .pd-text-gray-400 {
1260
+ --tw-text-opacity: 1;
1261
+ color: rgb(156 163 175 / var(--tw-text-opacity, 1));
1262
+ }
1263
+ .pd-text-gray-500 {
1264
+ --tw-text-opacity: 1;
1265
+ color: rgb(107 114 128 / var(--tw-text-opacity, 1));
1266
+ }
1267
+ .pd-opacity-0 {
1268
+ opacity: 0;
1269
+ }
1270
+ .pd-opacity-100 {
1271
+ opacity: 1;
1272
+ }
1113
1273
  .pd-shadow-none {
1114
1274
  --tw-shadow: 0 0 #0000;
1115
1275
  --tw-shadow-colored: 0 0 #0000;
@@ -1118,6 +1278,18 @@ html body.pd-root,
1118
1278
  var(--tw-ring-shadow, 0 0 #0000),
1119
1279
  var(--tw-shadow);
1120
1280
  }
1281
+ .pd-shadow-sm {
1282
+ --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
1283
+ --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
1284
+ box-shadow:
1285
+ var(--tw-ring-offset-shadow, 0 0 #0000),
1286
+ var(--tw-ring-shadow, 0 0 #0000),
1287
+ var(--tw-shadow);
1288
+ }
1289
+ .pd-backdrop-blur-sm {
1290
+ --tw-backdrop-blur: blur(4px);
1291
+ backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
1292
+ }
1121
1293
  .pd-transition-all {
1122
1294
  transition-property: all;
1123
1295
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -1145,6 +1317,9 @@ html body.pd-root,
1145
1317
  white-space: nowrap;
1146
1318
  border-width: 0;
1147
1319
  }
1320
+ .pd-backdrop-blur-sm {
1321
+ backdrop-filter: blur(4px);
1322
+ }
1148
1323
  .pd-transition-all {
1149
1324
  transition: all 0.15s ease-in-out;
1150
1325
  }
@@ -1229,6 +1404,11 @@ html body.pd-root,
1229
1404
  .\[padding-top\:var\(--pd-button-padding-sm-vertical\)\] {
1230
1405
  padding-top: var(--pd-button-padding-sm-vertical);
1231
1406
  }
1407
+ .hover\:pd-scale-\[1\.02\]:hover {
1408
+ --tw-scale-x: 1.02;
1409
+ --tw-scale-y: 1.02;
1410
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1411
+ }
1232
1412
  .hover\:pd-bg-\[var\(--pd-background-invert-light\)\]:hover {
1233
1413
  background-color: var(--pd-background-invert-light);
1234
1414
  }
@@ -1238,6 +1418,9 @@ html body.pd-root,
1238
1418
  .hover\:pd-bg-\[var\(--pd-background-red-on-hover\)\]:hover {
1239
1419
  background-color: var(--pd-background-red-on-hover);
1240
1420
  }
1421
+ .hover\:pd-bg-\[var\(--pd-background-system\)\]:hover {
1422
+ background-color: var(--pd-background-system);
1423
+ }
1241
1424
  .hover\:pd-bg-\[var\(--pd-intent-danger-bg\)\]:hover {
1242
1425
  background-color: var(--pd-intent-danger-bg);
1243
1426
  }
@@ -1259,6 +1442,10 @@ html body.pd-root,
1259
1442
  .hover\:pd-bg-\[var\(--pd-intent-warning-bg-hover\)\]:hover {
1260
1443
  background-color: var(--pd-intent-warning-bg-hover);
1261
1444
  }
1445
+ .hover\:pd-bg-gray-100:hover {
1446
+ --tw-bg-opacity: 1;
1447
+ background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
1448
+ }
1262
1449
  .hover\:pd-text-\[var\(--pd-content-primary\)\]:hover {
1263
1450
  color: var(--pd-content-primary);
1264
1451
  }
@@ -1277,6 +1464,34 @@ html body.pd-root,
1277
1464
  .hover\:pd-text-\[var\(--pd-intent-warning-hover\)\]:hover {
1278
1465
  color: var(--pd-intent-warning-hover);
1279
1466
  }
1467
+ .hover\:pd-text-gray-600:hover {
1468
+ --tw-text-opacity: 1;
1469
+ color: rgb(75 85 99 / var(--tw-text-opacity, 1));
1470
+ }
1471
+ .focus\:pd-border-blue-500:focus {
1472
+ --tw-border-opacity: 1;
1473
+ border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
1474
+ }
1475
+ .focus\:pd-outline-none:focus {
1476
+ outline: 2px solid transparent;
1477
+ outline-offset: 2px;
1478
+ }
1479
+ .focus\:pd-ring-2:focus {
1480
+ --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1481
+ --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1482
+ box-shadow:
1483
+ var(--tw-ring-offset-shadow),
1484
+ var(--tw-ring-shadow),
1485
+ var(--tw-shadow, 0 0 #0000);
1486
+ }
1487
+ .focus\:pd-ring-blue-500\/10:focus {
1488
+ --tw-ring-color: rgb(59 130 246 / 0.1);
1489
+ }
1490
+ .active\:pd-scale-\[0\.98\]:active {
1491
+ --tw-scale-x: 0.98;
1492
+ --tw-scale-y: 0.98;
1493
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1494
+ }
1280
1495
  .active\:pd-bg-\[var\(--pd-background-invert\)\]:active {
1281
1496
  background-color: var(--pd-background-invert);
1282
1497
  }
@@ -1298,4 +1513,14 @@ html body.pd-root,
1298
1513
  .active\:pd-text-\[var\(--pd-content-primary\)\]:active {
1299
1514
  color: var(--pd-content-primary);
1300
1515
  }
1516
+ .pd-group:focus-within .group-focus-within\:pd-text-blue-500 {
1517
+ --tw-text-opacity: 1;
1518
+ color: rgb(59 130 246 / var(--tw-text-opacity, 1));
1519
+ }
1520
+ .pd-group:hover .group-hover\:pd-text-\[var\(--pd-content-blue\)\] {
1521
+ color: var(--pd-content-blue);
1522
+ }
1523
+ .pd-group:hover .group-hover\:pd-opacity-60 {
1524
+ opacity: 0.6;
1525
+ }
1301
1526
  /*# sourceMappingURL=index.css.map */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectdiscoveryio/design-system",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Production-grade design system with adapter layer support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -109,13 +109,11 @@
109
109
  "tailwind-merge": "^2.2.0"
110
110
  },
111
111
  "devDependencies": {
112
- "@storybook/addon-a11y": "^7.6.17",
113
- "@storybook/addon-essentials": "^7.6.17",
114
- "@storybook/addon-interactions": "^7.6.17",
115
- "@storybook/addon-links": "^7.6.17",
112
+ "@storybook/addon-a11y": "^10.1.11",
113
+ "@storybook/addon-links": "^10.1.11",
116
114
  "@storybook/blocks": "^7.6.17",
117
- "@storybook/react": "^7.6.17",
118
- "@storybook/react-vite": "^7.6.17",
115
+ "@storybook/react": "^10.1.11",
116
+ "@storybook/react-vite": "^10.1.11",
119
117
  "@storybook/test": "^7.6.17",
120
118
  "@testing-library/jest-dom": "^6.1.5",
121
119
  "@testing-library/react": "^14.1.2",
@@ -141,12 +139,13 @@
141
139
  "postcss-cli": "^11.0.1",
142
140
  "react": "^18.2.0",
143
141
  "react-dom": "^18.2.0",
144
- "storybook": "^7.6.17",
142
+ "storybook": "^10.1.11",
145
143
  "tailwindcss": "^3.4.1",
146
144
  "tsup": "^8.0.1",
147
145
  "tsx": "^4.21.0",
148
146
  "typescript": "^5.3.3",
149
147
  "vite": "^5.0.11",
150
- "vitest": "^1.2.0"
148
+ "vitest": "^1.2.0",
149
+ "@storybook/addon-docs": "^10.1.11"
151
150
  }
152
151
  }