@donotdev/components 0.0.5 → 0.0.7

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.
@@ -1057,12 +1057,13 @@ em {
1057
1057
  }
1058
1058
 
1059
1059
  .dndev-surface[data-variant='glass'] {
1060
- background: color-mix(in oklab, var(--card) 40%, transparent);
1061
- backdrop-filter: blur(12px);
1062
- -webkit-backdrop-filter: blur(12px);
1060
+ background: color-mix(in oklab, var(--card) 55%, transparent);
1061
+ backdrop-filter: blur(20px) saturate(180%);
1062
+ -webkit-backdrop-filter: blur(20px) saturate(180%);
1063
1063
  border: var(--border-hairline) solid
1064
- color-mix(in oklab, var(--card-foreground) 15%, transparent);
1065
- box-shadow: var(--shadow-lg);
1064
+ color-mix(in oklab, var(--card-foreground) 25%, transparent);
1065
+ box-shadow: var(--shadow-lg),
1066
+ inset 0 1px 0 0 color-mix(in oklab, var(--card-foreground) 10%, transparent);
1066
1067
  }
1067
1068
 
1068
1069
  /* Separator style */
@@ -2132,6 +2133,7 @@ em {
2132
2133
  background: transparent;
2133
2134
  color: inherit;
2134
2135
  font-size: var(--font-size-base);
2136
+ font-weight: var(--font-weight-medium);
2135
2137
  }
2136
2138
 
2137
2139
  .dndev-interactive[data-role='accordion-trigger']:hover {
@@ -2156,6 +2158,7 @@ em {
2156
2158
  transition: all var(--dur-fast) var(--ease-in-out);
2157
2159
  width: 100%;
2158
2160
  min-width: 0;
2161
+ text-align: start;
2159
2162
  }
2160
2163
 
2161
2164
  .dndev-accordion-content[data-state='closed'] {
@@ -2903,24 +2906,24 @@ em {
2903
2906
  }
2904
2907
 
2905
2908
  .dndev-cta[data-tone='base'] {
2906
- background: linear-gradient(to right, var(--secondary), var(--background));
2909
+ background: var(--background);
2907
2910
  }
2908
2911
 
2909
2912
  .dndev-cta[data-tone='muted'] {
2910
- background: linear-gradient(to right, var(--muted), var(--background));
2913
+ background: var(--muted);
2911
2914
  }
2912
2915
 
2913
- .dndev-cta[data-tone='accent'] {
2914
- background: linear-gradient(to right, var(--accent), var(--muted));
2916
+ .dndev-cta[data-tone='elevated'] {
2917
+ background: var(--background);
2915
2918
  }
2916
2919
 
2917
2920
  .dndev-cta[data-tone='contrast'] {
2918
- background: linear-gradient(to right, var(--foreground), var(--background));
2921
+ background: var(--foreground);
2919
2922
  color: var(--background);
2920
2923
  }
2921
2924
 
2922
- .dndev-cta[data-tone='elevated'] {
2923
- background: linear-gradient(to right, var(--secondary), var(--background));
2925
+ .dndev-cta[data-tone='accent'] {
2926
+ background: color-mix(in oklab, var(--accent) 5%, transparent);
2924
2927
  }
2925
2928
 
2926
2929
  .dndev-cta-content {
@@ -2961,10 +2964,14 @@ em {
2961
2964
  flex-direction: column;
2962
2965
  gap: var(--gap-md);
2963
2966
  justify-content: center;
2964
-
2965
- /* Button contrast overrides */
2966
2967
  }
2967
2968
 
2969
+ .dndev-cta-actions .dndev-interactive {
2970
+ min-width: 150px;
2971
+ }
2972
+
2973
+ /* Button contrast overrides */
2974
+
2968
2975
  .dndev-cta-actions .dndev-interactive[data-variant='primary'] {
2969
2976
  background: var(--foreground);
2970
2977
  color: var(--background);
@@ -3027,11 +3034,12 @@ em {
3027
3034
  word-wrap: break-word;
3028
3035
  }
3029
3036
 
3030
- .dndev-card-subtitle {
3037
+ .dndev-surface .dndev-card-subtitle {
3031
3038
  margin-top: 0;
3032
3039
  margin-bottom: 0;
3033
3040
  min-width: 0;
3034
3041
  word-wrap: break-word;
3042
+ color: color-mix(in oklab, var(--card-foreground) 70%, transparent);
3035
3043
  }
3036
3044
 
3037
3045
  /* packages/components/src/atomic/Checkbox/Checkbox.css */
@@ -3122,6 +3130,203 @@ em {
3122
3130
  }
3123
3131
  }
3124
3132
 
3133
+ /* packages/components/src/atomic/Collapsible/Collapsible.css */
3134
+
3135
+ .dndev-collapsible {
3136
+ width: 100%;
3137
+ display: flex;
3138
+ flex-direction: column;
3139
+ }
3140
+
3141
+ .dndev-collapsible-content {
3142
+ overflow: hidden;
3143
+ width: 100%;
3144
+ }
3145
+
3146
+ .dndev-collapsible-content[data-state='open'] {
3147
+ animation: slideDown var(--dur-normal) var(--ease-in-out);
3148
+ }
3149
+
3150
+ .dndev-collapsible-content[data-state='closed'] {
3151
+ animation: slideUp var(--dur-normal) var(--ease-in-out);
3152
+ }
3153
+
3154
+ @keyframes slideDown {
3155
+ from {
3156
+ height: 0;
3157
+ }
3158
+ to {
3159
+ height: var(--radix-collapsible-content-height);
3160
+ }
3161
+ }
3162
+
3163
+ @keyframes slideUp {
3164
+ from {
3165
+ height: var(--radix-collapsible-content-height);
3166
+ }
3167
+ to {
3168
+ height: 0;
3169
+ }
3170
+ }
3171
+
3172
+ /* packages/components/src/atomic/Combobox/Combobox.css */
3173
+
3174
+ .dndev-combobox-trigger {
3175
+ display: flex;
3176
+ justify-content: space-between;
3177
+ align-items: center;
3178
+ width: 100%;
3179
+ text-align: left;
3180
+ }
3181
+
3182
+ .dndev-combobox-trigger button {
3183
+ display: flex;
3184
+ justify-content: space-between;
3185
+ align-items: center;
3186
+ width: 100%;
3187
+ }
3188
+
3189
+ .dndev-combobox-placeholder {
3190
+ opacity: var(--opacity-muted);
3191
+ }
3192
+
3193
+ .dndev-combobox-trigger-icons {
3194
+ display: flex;
3195
+ align-items: center;
3196
+ gap: var(--gap-tight);
3197
+ margin-inline-start: auto;
3198
+ }
3199
+
3200
+ .dndev-combobox-clear {
3201
+ display: flex;
3202
+ align-items: center;
3203
+ justify-content: center;
3204
+ cursor: pointer;
3205
+ opacity: var(--opacity-muted);
3206
+ transition: opacity var(--dur-fast) var(--ease-in-out);
3207
+ -webkit-user-select: none;
3208
+ -moz-user-select: none;
3209
+ user-select: none;
3210
+ }
3211
+
3212
+ .dndev-combobox-clear:hover,
3213
+ .dndev-combobox-clear:focus {
3214
+ opacity: 1;
3215
+ outline: none;
3216
+ }
3217
+
3218
+ .dndev-combobox-clear svg {
3219
+ width: var(--icon-sm);
3220
+ height: var(--icon-sm);
3221
+ }
3222
+
3223
+ .dndev-combobox-chevron {
3224
+ width: var(--icon-md);
3225
+ height: var(--icon-md);
3226
+ opacity: var(--opacity-muted);
3227
+ transition: transform var(--dur-fast) var(--ease-in-out);
3228
+ }
3229
+
3230
+ [data-state='open'] .dndev-combobox-chevron {
3231
+ transform: rotate(180deg);
3232
+ }
3233
+
3234
+ .dndev-combobox-loading-container {
3235
+ display: flex;
3236
+ align-items: center;
3237
+ gap: var(--gap-sm);
3238
+ }
3239
+
3240
+ .dndev-combobox-loading-spinner {
3241
+ width: var(--icon-md);
3242
+ height: var(--icon-md);
3243
+ border-radius: var(--radius-full);
3244
+ border: 2px solid currentColor;
3245
+ border-top-color: transparent;
3246
+ }
3247
+
3248
+ .dndev-combobox-content {
3249
+ width: var(--radix-popover-trigger-width);
3250
+ min-width: var(--radix-popover-trigger-width);
3251
+ max-height: 300px;
3252
+ display: flex;
3253
+ flex-direction: column;
3254
+ padding: 0;
3255
+ }
3256
+
3257
+ .dndev-combobox-search-container {
3258
+ padding: var(--gap-sm);
3259
+ border-bottom: var(--border-width) solid var(--line-2);
3260
+ }
3261
+
3262
+ .dndev-combobox-search-input {
3263
+ width: 100%;
3264
+ }
3265
+
3266
+ .dndev-combobox-list {
3267
+ overflow-y: auto;
3268
+ padding: var(--gap-tight);
3269
+ display: flex;
3270
+ flex-direction: column;
3271
+ gap: var(--gap-none);
3272
+ }
3273
+
3274
+ .dndev-combobox-option {
3275
+ all: unset;
3276
+ display: flex;
3277
+ align-items: center;
3278
+ justify-content: space-between;
3279
+ padding: var(--gap-sm) var(--gap-md);
3280
+ cursor: pointer;
3281
+ border-radius: var(--radius-interactive);
3282
+ transition: background-color var(--dur-fast) var(--ease-in-out);
3283
+ }
3284
+
3285
+ .dndev-combobox-option:disabled {
3286
+ opacity: var(--opacity-muted);
3287
+ cursor: not-allowed;
3288
+ }
3289
+
3290
+ .dndev-combobox-option-highlighted:not(:disabled) {
3291
+ background-color: var(--accent);
3292
+ opacity: var(--opacity-strong);
3293
+ }
3294
+
3295
+ .dndev-combobox-option-selected {
3296
+ font-weight: var(--font-weight-medium);
3297
+ }
3298
+
3299
+ .dndev-combobox-option-content {
3300
+ display: flex;
3301
+ flex-direction: column;
3302
+ gap: var(--gap-tight);
3303
+ flex: 1;
3304
+ }
3305
+
3306
+ .dndev-combobox-option-label {
3307
+ font-size: var(--font-size-sm);
3308
+ color: var(--foreground);
3309
+ }
3310
+
3311
+ .dndev-combobox-option-description {
3312
+ font-size: var(--font-size-xs);
3313
+ color: var(--muted-foreground);
3314
+ }
3315
+
3316
+ .dndev-combobox-option-check {
3317
+ width: var(--icon-md);
3318
+ height: var(--icon-md);
3319
+ color: currentColor;
3320
+ flex-shrink: 0;
3321
+ }
3322
+
3323
+ .dndev-combobox-empty {
3324
+ padding: var(--gap-lg) var(--gap-md);
3325
+ text-align: center;
3326
+ font-size: var(--font-size-sm);
3327
+ color: var(--muted-foreground);
3328
+ }
3329
+
3125
3330
  /* packages/components/src/atomic/DualCard/DualCard.css */
3126
3331
 
3127
3332
  .dndev-dual-card {
@@ -4970,17 +5175,17 @@ em {
4970
5175
  margin-block-end: var(--gap-md);
4971
5176
  }
4972
5177
 
4973
- .dndev-section-full-width[data-text-align='start'] .dndev-section-content {
4974
- text-align: start;
4975
- }
5178
+ .dndev-section-full-width[data-text-align='start'] .dndev-section-title {
5179
+ text-align: start;
5180
+ }
4976
5181
 
4977
- .dndev-section-full-width[data-text-align='center'] .dndev-section-content {
4978
- text-align: center;
4979
- }
5182
+ .dndev-section-full-width[data-text-align='center'] .dndev-section-title {
5183
+ text-align: center;
5184
+ }
4980
5185
 
4981
- .dndev-section-full-width[data-text-align='end'] .dndev-section-content {
4982
- text-align: end;
4983
- }
5186
+ .dndev-section-full-width[data-text-align='end'] .dndev-section-title {
5187
+ text-align: end;
5188
+ }
4984
5189
 
4985
5190
  /* packages/components/src/atomic/Separator/Separator.css */
4986
5191
 
@@ -5832,7 +6037,7 @@ em {
5832
6037
  display: block;
5833
6038
  width: 1.25rem;
5834
6039
  height: 1.25rem;
5835
- background-color: var(--background);
6040
+ background-color: var(--foreground);
5836
6041
  border-radius: 9999px;
5837
6042
  box-shadow: var(--shadow-md);
5838
6043
  transition: transform var(--dur-normal) var(--ease-in-out);
@@ -6133,6 +6338,123 @@ em {
6133
6338
  display: none;
6134
6339
  }
6135
6340
 
6341
+ /* packages/components/src/atomic/Tag/Tag.css */
6342
+
6343
+ .dndev-tag {
6344
+ display: inline-flex;
6345
+ align-items: center;
6346
+ gap: var(--gap-xs);
6347
+ border-radius: var(--radius-full);
6348
+ border: 1px solid transparent;
6349
+ font-size: var(--font-size-sm);
6350
+ font-weight: 500;
6351
+ line-height: 1;
6352
+ white-space: nowrap;
6353
+ transition: all var(--dur-fast) var(--ease-in-out);
6354
+
6355
+ /* Default variant */
6356
+ background-color: var(--secondary);
6357
+ color: var(--secondary-foreground);
6358
+ }
6359
+
6360
+ .dndev-tag .dndev-tag-remove {
6361
+ display: inline-flex;
6362
+ align-items: center;
6363
+ justify-content: center;
6364
+ padding: 0;
6365
+ margin-left: 2px;
6366
+ background: transparent;
6367
+ border: none;
6368
+ cursor: pointer;
6369
+ color: inherit;
6370
+ opacity: 0.7;
6371
+ border-radius: 50%;
6372
+ width: 14px;
6373
+ height: 14px;
6374
+ transition: opacity var(--dur-fast);
6375
+ }
6376
+
6377
+ :is(.dndev-tag .dndev-tag-remove):hover {
6378
+ opacity: 1;
6379
+ background-color: rgba(0, 0, 0, 0.1);
6380
+ }
6381
+
6382
+ :is(.dndev-tag .dndev-tag-remove):focus-visible {
6383
+ outline: 2px solid var(--ring);
6384
+ }
6385
+
6386
+ .dndev-tag .dndev-tag-remove-icon {
6387
+ width: 10px;
6388
+ height: 10px;
6389
+ }
6390
+
6391
+ /* Sizes */
6392
+
6393
+ .dndev-tag-sm {
6394
+ padding: 0.125rem 0.5rem;
6395
+ font-size: var(--font-size-xs);
6396
+ height: 20px;
6397
+ }
6398
+
6399
+ .dndev-tag-md {
6400
+ padding: 0.25rem 0.75rem;
6401
+ font-size: var(--font-size-sm);
6402
+ height: 24px;
6403
+ }
6404
+
6405
+ .dndev-tag-lg {
6406
+ padding: 0.375rem 0.875rem;
6407
+ font-size: var(--font-size-base);
6408
+ height: 32px;
6409
+ }
6410
+
6411
+ /* Variants */
6412
+
6413
+ .dndev-tag-outline {
6414
+ background-color: transparent;
6415
+ border-color: var(--border);
6416
+ color: var(--foreground);
6417
+ }
6418
+
6419
+ .dndev-tag-accent {
6420
+ background-color: var(--accent);
6421
+ color: var(--accent-foreground);
6422
+ border-color: transparent;
6423
+ }
6424
+
6425
+ /* Interactive States */
6426
+
6427
+ .dndev-tag-interactive {
6428
+ cursor: pointer;
6429
+ -webkit-user-select: none;
6430
+ -moz-user-select: none;
6431
+ user-select: none;
6432
+ }
6433
+
6434
+ .dndev-tag-interactive:hover {
6435
+ opacity: 0.8;
6436
+ }
6437
+
6438
+ .dndev-tag-interactive:focus-visible {
6439
+ outline: 2px solid var(--ring);
6440
+ outline-offset: 2px;
6441
+ }
6442
+
6443
+ .dndev-tag-disabled {
6444
+ pointer-events: none;
6445
+ opacity: 0.5;
6446
+ }
6447
+
6448
+ .dndev-tag-sm .dndev-tag-remove-icon {
6449
+ width: 8px;
6450
+ height: 8px;
6451
+ }
6452
+
6453
+ .dndev-tag-lg .dndev-tag-remove-icon {
6454
+ width: 12px;
6455
+ height: 12px;
6456
+ }
6457
+
6136
6458
  /* packages/components/src/atomic/Text/Text.css */
6137
6459
 
6138
6460
  .dndev-text-base[data-text-align='start'] {
@@ -6154,7 +6476,7 @@ em {
6154
6476
  }
6155
6477
 
6156
6478
  .dndev-text-base[data-variant='default'] {
6157
- color: var(--foreground);
6479
+ color: inherit;
6158
6480
  }
6159
6481
 
6160
6482
  .dndev-text-base[data-variant='muted'] {
@@ -6214,7 +6536,6 @@ em {
6214
6536
  .dndev-text-base[data-level='h4'] {
6215
6537
  font-size: var(--font-size-base);
6216
6538
  font-weight: var(--font-weight-medium);
6217
- color: var(--muted-foreground);
6218
6539
  }
6219
6540
 
6220
6541
  .dndev-text-base[data-level='body'] {
@@ -6438,7 +6759,7 @@ em {
6438
6759
 
6439
6760
  .dndev-toggle-group .dndev-interactive {
6440
6761
  border: none;
6441
- border-radius: calc(var(--radius) - 2px);
6762
+ border-radius: var(--radius-interactive);
6442
6763
  background-color: transparent !important;
6443
6764
  min-height: auto;
6444
6765
  padding: var(--gap-sm) var(--gap-md);
@@ -6578,6 +6899,14 @@ em {
6578
6899
  display: block;
6579
6900
  }
6580
6901
 
6902
+ /* SVG placeholder - zero bytes, instant render */
6903
+
6904
+ .dndev-video-placeholder {
6905
+ width: 100%;
6906
+ height: 100%;
6907
+ display: block;
6908
+ }
6909
+
6581
6910
  /* Play button overlay */
6582
6911
 
6583
6912
  .dndev-video-play-overlay {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/components",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "description": "Styled UI components for DoNotDev",