@symbo.ls/uikit 2.11.136 → 2.11.138

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/index.cjs.js CHANGED
@@ -4809,9 +4809,9 @@ var require_updateState = __commonJS({
4809
4809
  }
4810
4810
  });
4811
4811
 
4812
- // ../../node_modules/@domql/state/dist/cjs/createState.js
4813
- var require_createState = __commonJS({
4814
- "../../node_modules/@domql/state/dist/cjs/createState.js"(exports, module2) {
4812
+ // ../../node_modules/@domql/state/dist/cjs/create.js
4813
+ var require_create = __commonJS({
4814
+ "../../node_modules/@domql/state/dist/cjs/create.js"(exports, module2) {
4815
4815
  "use strict";
4816
4816
  var __defProp2 = Object.defineProperty;
4817
4817
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -4830,11 +4830,12 @@ var require_createState = __commonJS({
4830
4830
  return to;
4831
4831
  };
4832
4832
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
4833
- var createState_exports = {};
4834
- __export2(createState_exports, {
4833
+ var create_exports = {};
4834
+ __export2(create_exports, {
4835
+ applyInitialState: () => applyInitialState,
4835
4836
  createState: () => createState
4836
4837
  });
4837
- module2.exports = __toCommonJS2(createState_exports);
4838
+ module2.exports = __toCommonJS2(create_exports);
4838
4839
  var import_event = require_cjs4();
4839
4840
  var import_utils14 = require_cjs2();
4840
4841
  var import_ignore = require_ignore();
@@ -4842,7 +4843,9 @@ var require_createState = __commonJS({
4842
4843
  var import_updateState = require_updateState();
4843
4844
  var import_inherit = require_inherit();
4844
4845
  var createState = function(element, parent, options) {
4845
- const skipApplyMethods = Boolean(options && options.skipApplyMethods);
4846
+ element.state = applyInitialState(element, parent, options);
4847
+ };
4848
+ var applyInitialState = function(element, parent, options) {
4846
4849
  const objectizeState = checkForTypes(element);
4847
4850
  if (objectizeState === false)
4848
4851
  return parent.state || {};
@@ -4858,14 +4861,6 @@ var require_createState = __commonJS({
4858
4861
  const dependentState = applyDependentState(element, element.state);
4859
4862
  if (dependentState)
4860
4863
  element.state = dependentState;
4861
- if (skipApplyMethods) {
4862
- if (element.parent && element.parent.state) {
4863
- element.state.parent = element.parent.state;
4864
- } else {
4865
- element.state.parent = {};
4866
- }
4867
- return element.state;
4868
- }
4869
4864
  applyMethods(element);
4870
4865
  (0, import_event.triggerEventOn)("stateCreated", element);
4871
4866
  return element.state;
@@ -4938,7 +4933,7 @@ var require_createState = __commonJS({
4938
4933
  } else {
4939
4934
  Object.setPrototypeOf(state, proto);
4940
4935
  }
4941
- if (state.parent)
4936
+ if (state.parent && state.parent.__children)
4942
4937
  state.parent.__children[element.key] = state;
4943
4938
  };
4944
4939
  }
@@ -4965,7 +4960,7 @@ var require_cjs5 = __commonJS({
4965
4960
  var state_exports = {};
4966
4961
  module2.exports = __toCommonJS2(state_exports);
4967
4962
  __reExport(state_exports, require_ignore(), module2.exports);
4968
- __reExport(state_exports, require_createState(), module2.exports);
4963
+ __reExport(state_exports, require_create(), module2.exports);
4969
4964
  __reExport(state_exports, require_updateState(), module2.exports);
4970
4965
  __reExport(state_exports, require_methods(), module2.exports);
4971
4966
  __reExport(state_exports, require_inherit(), module2.exports);
@@ -9265,6 +9260,7 @@ __export(domql_exports, {
9265
9260
  Avatar: () => Avatar,
9266
9261
  AvatarBundle: () => AvatarBundle,
9267
9262
  AvatarChooser: () => AvatarChooser,
9263
+ AvatarWithIndicator: () => AvatarWithIndicator,
9268
9264
  Block: () => Block,
9269
9265
  Box: () => Box,
9270
9266
  Br: () => Br,
@@ -9272,13 +9268,18 @@ __export(domql_exports, {
9272
9268
  ButtonSet: () => ButtonSet,
9273
9269
  Caption: () => Caption,
9274
9270
  Card: () => Card,
9275
- Chat: () => Chat,
9271
+ CardLabel: () => CardLabel,
9272
+ ChatUser: () => ChatUser,
9273
+ ChatUserWithButtonSet: () => ChatUserWithButtonSet,
9274
+ ChatUserWithNotification: () => ChatUserWithNotification,
9275
+ ChatUserWithUploadedFile: () => ChatUserWithUploadedFile,
9276
9276
  CheckBoxWithLabel: () => CheckBoxWithLabel,
9277
9277
  Checkbox: () => Checkbox,
9278
9278
  Circle: () => Circle,
9279
9279
  CircleButton: () => CircleButton,
9280
9280
  Clickable: () => Clickable,
9281
9281
  Collection: () => Collection,
9282
+ DateIndicator: () => DateIndicator,
9282
9283
  DatePicker: () => DatePicker,
9283
9284
  DatePickerDay: () => DatePickerDay,
9284
9285
  DatePickerGrid: () => DatePickerGrid,
@@ -9315,6 +9316,8 @@ __export(domql_exports, {
9315
9316
  IconText: () => IconText2,
9316
9317
  Iframe: () => Iframe,
9317
9318
  Img: () => Img,
9319
+ IndicatorDot: () => IndicatorDot,
9320
+ InfoSet: () => InfoSet,
9318
9321
  Input: () => Input2,
9319
9322
  Interaction: () => Interaction,
9320
9323
  Italic: () => Italic,
@@ -9324,6 +9327,7 @@ __export(domql_exports, {
9324
9327
  List: () => List,
9325
9328
  Media: () => Media,
9326
9329
  Notification: () => Notification,
9330
+ NotificationAlert: () => NotificationAlert,
9327
9331
  NumberInput: () => NumberInput,
9328
9332
  Overflow: () => Overflow,
9329
9333
  P: () => P,
@@ -9349,6 +9353,7 @@ __export(domql_exports, {
9349
9353
  Subhead: () => Subhead,
9350
9354
  Svg: () => Svg,
9351
9355
  Tab: () => Tab,
9356
+ Table: () => Table,
9352
9357
  Text: () => Text,
9353
9358
  Textarea: () => Textarea,
9354
9359
  Theme: () => Theme,
@@ -9369,6 +9374,7 @@ __export(domql_exports, {
9369
9374
  UploadProgress: () => UploadProgress,
9370
9375
  UploadResult: () => UploadResult,
9371
9376
  User: () => User,
9377
+ Video: () => Video,
9372
9378
  XYZ: () => XYZ,
9373
9379
  calendar: () => calendar,
9374
9380
  getSystemTheme: () => getSystemTheme,
@@ -12057,6 +12063,57 @@ var KangorooButton = {
12057
12063
  childExtend: IconText
12058
12064
  };
12059
12065
 
12066
+ // Accessories/index.js
12067
+ var IndicatorDot = {
12068
+ props: {
12069
+ boxSize: "Y+V1",
12070
+ background: "#04F214",
12071
+ round: "100%",
12072
+ border: "solid, black 0",
12073
+ borderWidth: "1px"
12074
+ }
12075
+ };
12076
+ var NotificationAlert = {
12077
+ span: { props: { text: "2" } },
12078
+ props: {
12079
+ background: "#0474F2",
12080
+ boxSize: "fit-content",
12081
+ padding: "- X",
12082
+ round: "Y+V",
12083
+ span: {
12084
+ fontSize: "Y",
12085
+ color: "white"
12086
+ }
12087
+ }
12088
+ };
12089
+ var DateIndicator = {
12090
+ extend: Flex,
12091
+ days: { ...[{ props: { text: "monday" } }] },
12092
+ time: {
12093
+ extend: Flex,
12094
+ hour: { props: { text: "2" } },
12095
+ ":after": { content: ":" },
12096
+ minutes: { props: { text: "20" } }
12097
+ },
12098
+ timeFormat: {
12099
+ ...[
12100
+ { props: { text: "am" } },
12101
+ { props: { text: "pm", display: "none" } }
12102
+ ]
12103
+ },
12104
+ props: {
12105
+ gap: "Y",
12106
+ childProps: {
12107
+ fontWeight: "400",
12108
+ color: "#A3A3A8"
12109
+ },
12110
+ days: { childProps: { textTransform: "capitalize" } },
12111
+ timeFormat: {
12112
+ textTransform: "uppercase"
12113
+ }
12114
+ }
12115
+ };
12116
+
12060
12117
  // Avatar/index.js
12061
12118
  var Avatar = {
12062
12119
  extend: Img,
@@ -12064,13 +12121,27 @@ var Avatar = {
12064
12121
  display: "block",
12065
12122
  avatarType: "initials",
12066
12123
  borderRadius: "100%",
12067
- boxSize: "B",
12124
+ boxSize: "A+A",
12068
12125
  cursor: "pointer"
12069
12126
  },
12070
12127
  attr: {
12071
12128
  src: ({ key, props: props6 }) => props6.src || `https://avatars.dicebear.com/api/${props6.avatarType || "adventurer-neutral"}/${props6.key || key}.svg`
12072
12129
  }
12073
12130
  };
12131
+ var AvatarWithIndicator = {
12132
+ avatar: { extend: Avatar },
12133
+ indicator: { extend: IndicatorDot },
12134
+ props: {
12135
+ boxSize: "fit-content fit-content",
12136
+ round: "100%",
12137
+ position: "relative",
12138
+ indicator: {
12139
+ position: "absolute",
12140
+ bottom: "0",
12141
+ right: "0"
12142
+ }
12143
+ }
12144
+ };
12074
12145
  var AvatarBundle = {
12075
12146
  extend: Flex,
12076
12147
  childExtend: {
@@ -13294,6 +13365,30 @@ var Field = {
13294
13365
  input: { extend: [Focusable2, Input2] }
13295
13366
  };
13296
13367
 
13368
+ // Video/index.js
13369
+ var Video = {
13370
+ tag: "video",
13371
+ childExtend: {
13372
+ tag: "source",
13373
+ attr: {
13374
+ src: ({ props: props6 }) => props6.src,
13375
+ controls: ({ props: props6 }) => props6.controls
13376
+ }
13377
+ },
13378
+ props: {
13379
+ controls: true
13380
+ },
13381
+ attr: {
13382
+ src: ({ props: props6 }) => props6.src,
13383
+ autoplay: ({ props: props6 }) => props6.autoplay,
13384
+ loop: ({ props: props6 }) => props6.loop,
13385
+ poster: ({ props: props6 }) => props6.poster,
13386
+ muted: ({ props: props6 }) => props6.muted,
13387
+ preload: ({ props: props6 }) => props6.preload,
13388
+ controls: ({ props: props6 }) => props6.controls
13389
+ }
13390
+ };
13391
+
13297
13392
  // Range/index.js
13298
13393
  var import_utils12 = __toESM(require_cjs2());
13299
13394
  var import_scratch19 = __toESM(require_cjs());
@@ -14107,16 +14202,281 @@ var Steps = {
14107
14202
  $setPropsCollection: ({ props: props6 }) => props6.options
14108
14203
  };
14109
14204
 
14205
+ // Table/index.js
14206
+ var Table = {};
14207
+
14208
+ // InfoSet/index.js
14209
+ var InfoSet = {
14210
+ extend: Flex,
14211
+ childExtend: Flex,
14212
+ props: {
14213
+ flow: "column",
14214
+ childProps: {
14215
+ title: {
14216
+ fontSize: "Z",
14217
+ fontWeight: "500"
14218
+ },
14219
+ subTitle: {
14220
+ fontSize: "Y",
14221
+ color: "#A3A3A8"
14222
+ }
14223
+ }
14224
+ }
14225
+ };
14226
+
14227
+ // User/index.js
14228
+ var User = {
14229
+ extend: Flex,
14230
+ image: { extend: AvatarWithIndicator },
14231
+ infos: {
14232
+ extend: InfoSet,
14233
+ ...[
14234
+ {
14235
+ title: { props: { text: "Erin Schleifer" } },
14236
+ subTitle: { caption: { props: { text: "email@symbols.com" } } }
14237
+ }
14238
+ ]
14239
+ },
14240
+ props: {
14241
+ boxSize: "fit-content",
14242
+ align: "center flex-start",
14243
+ gap: "A",
14244
+ infos: {
14245
+ childProps: {
14246
+ flow: "column",
14247
+ subTitle: { caption: { whiteSpace: "nowrap" } }
14248
+ }
14249
+ }
14250
+ }
14251
+ };
14252
+
14110
14253
  // Chat/index.js
14111
- var Chat = {
14112
- text: "chat here"
14254
+ var ChatUser = {
14255
+ extend: User,
14256
+ image: {},
14257
+ infos: {
14258
+ ...[
14259
+ {
14260
+ title: {},
14261
+ subTitle: {
14262
+ extend: DateIndicator,
14263
+ caption: null
14264
+ }
14265
+ },
14266
+ { chatText: { props: { text: "Can you please review the latest design?" } } }
14267
+ ]
14268
+ },
14269
+ props: {
14270
+ align: "flex-start flex-start",
14271
+ image: { fontSize: "C" },
14272
+ infos: {
14273
+ gap: "Y",
14274
+ childProps: {
14275
+ flow: "row",
14276
+ align: "center space-between",
14277
+ chatText: {
14278
+ fontSize: "Z",
14279
+ background: "#252527",
14280
+ padding: "Z+W2 A+W",
14281
+ round: "Z+W2"
14282
+ }
14283
+ }
14284
+ }
14285
+ }
14286
+ };
14287
+ var ChatUserWithUploadedFile = {
14288
+ extend: ChatUser,
14289
+ image: {},
14290
+ infos: {
14291
+ ...[
14292
+ {},
14293
+ {
14294
+ chatText: null,
14295
+ uploadedFile: {
14296
+ extend: UploadResult,
14297
+ FileIcon: {},
14298
+ Flex: {
14299
+ H6: { text: "File.jpg" },
14300
+ caption: {
14301
+ extend: Flex,
14302
+ value: { props: { text: "1.2" } },
14303
+ mb: "mb"
14304
+ },
14305
+ Captions: null,
14306
+ UploadProgress: null
14307
+ }
14308
+ }
14309
+ }
14310
+ ]
14311
+ },
14312
+ props: {
14313
+ infos: {
14314
+ childProps: {
14315
+ uploadedFile: {
14316
+ background: "#1C1C1F",
14317
+ minWidth: "G",
14318
+ align: "center flex-start",
14319
+ FileIcon: {
14320
+ background: "#3F3F43",
14321
+ boxSize: `${54 / 16}em`,
14322
+ Icon: { fontSize: `${24 / 16}em` }
14323
+ },
14324
+ Flex: {
14325
+ H6: {
14326
+ fontSize: "Z",
14327
+ fontWeight: "500"
14328
+ },
14329
+ caption: {
14330
+ fontSize: "Z",
14331
+ color: "#A3A3A8",
14332
+ textTransform: "uppercase"
14333
+ }
14334
+ }
14335
+ }
14336
+ }
14337
+ }
14338
+ }
14339
+ };
14340
+ var ChatUserWithButtonSet = {
14341
+ extend: User,
14342
+ image: {},
14343
+ infos: {
14344
+ ...[
14345
+ {
14346
+ title: { props: { text: "Justin Dorwart" } },
14347
+ subTitle: { caption: { props: { text: "Active now" } } }
14348
+ },
14349
+ {
14350
+ extend: ButtonSet,
14351
+ ...[
14352
+ { props: { icon: "phone" } },
14353
+ { props: { icon: "video" } },
14354
+ { props: { icon: "info" } }
14355
+ ]
14356
+ }
14357
+ ]
14358
+ },
14359
+ props: {
14360
+ background: "#1C1C1F",
14361
+ padding: "A B",
14362
+ round: "A",
14363
+ image: { fontSize: `${24 / 16}em` },
14364
+ infos: {
14365
+ flow: "row",
14366
+ gap: "D",
14367
+ alignItems: "center",
14368
+ childProps: {
14369
+ "&:last-child": {
14370
+ flow: "row",
14371
+ gap: "Y+V",
14372
+ "& > button": {
14373
+ boxSize: "B+Y",
14374
+ background: "#141416",
14375
+ round: "A",
14376
+ "& > svg": {
14377
+ fontSize: "C",
14378
+ color: "white"
14379
+ }
14380
+ }
14381
+ },
14382
+ title: {
14383
+ fontSize: "C",
14384
+ fontWeight: "700"
14385
+ }
14386
+ }
14387
+ }
14388
+ }
14389
+ };
14390
+ var ChatUserWithNotification = {
14391
+ extend: ChatUser,
14392
+ image: {},
14393
+ infos: {
14394
+ ...[
14395
+ {
14396
+ title: {},
14397
+ subTitle: { days: null }
14398
+ },
14399
+ {
14400
+ chatText: { props: { text: "Hey team, Ive finished the re..." } },
14401
+ notification: { extend: NotificationAlert }
14402
+ }
14403
+ ]
14404
+ },
14405
+ props: {
14406
+ background: "#141416",
14407
+ padding: "A",
14408
+ round: "Z",
14409
+ infos: {
14410
+ childProps: {
14411
+ ":last-child": { gap: "D" },
14412
+ title: { fontSize: "A" },
14413
+ chatText: {
14414
+ padding: "0",
14415
+ background: "transparent",
14416
+ color: "#A3A3A8",
14417
+ minWidth: "F+C",
14418
+ maxWidth: "F+C"
14419
+ }
14420
+ }
14421
+ }
14422
+ }
14113
14423
  };
14114
14424
 
14115
14425
  // Card/index.js
14116
- var Card = {};
14117
-
14118
- // User/index.js
14119
- var User = {};
14426
+ var CardLabel = {
14427
+ props: {
14428
+ text: "-2.902x",
14429
+ fontSize: "Y",
14430
+ background: "#F4454E",
14431
+ boxSize: "fit-content fit-content",
14432
+ padding: "W Y",
14433
+ round: "Y"
14434
+ }
14435
+ };
14436
+ var Card = {
14437
+ extend: InfoSet,
14438
+ heading: {
14439
+ title: { props: { text: "Total crypto assets" } },
14440
+ icon: { extend: Icon, props: { name: "arrowUpRight" } }
14441
+ },
14442
+ content: {
14443
+ extend: Flex,
14444
+ amount: { props: { text: "$ 12,759" } },
14445
+ percent: {
14446
+ extend: CardLabel,
14447
+ props: { text: "+ 8.8%" }
14448
+ }
14449
+ },
14450
+ footer: {
14451
+ subTitle: {
14452
+ extend: Flex,
14453
+ caption: { props: { text: "Last update:" } },
14454
+ span: { props: { text: "an hour ago" } }
14455
+ }
14456
+ },
14457
+ props: {
14458
+ minWidth: "G",
14459
+ maxWidth: "G",
14460
+ padding: "A",
14461
+ round: "Z+V",
14462
+ gap: "Y",
14463
+ style: { background: "linear-gradient(to right, rgba(4, 116, 242, 1), rgba(0, 48, 103, 1))" },
14464
+ childProps: {
14465
+ alignItems: "center",
14466
+ title: { fontWeight: "700" },
14467
+ icon: { fontSize: "C", color: "#A3A3A8" },
14468
+ amount: { fontSize: `${24 / 16}em`, fontWeight: "700" },
14469
+ percent: { padding: "Y Z", background: "#04040466" },
14470
+ subTitle: {
14471
+ gap: "Y",
14472
+ caption: { color: "rgba(224, 224, 226, 1)" },
14473
+ span: { color: "rgba(233, 233, 234, 1)" }
14474
+ }
14475
+ },
14476
+ heading: { justifyContent: "space-between" },
14477
+ content: { gap: "Y" }
14478
+ }
14479
+ };
14120
14480
  /*! Bundled license information:
14121
14481
 
14122
14482
  moment/moment.js: