@symbo.ls/uikit 2.11.75 → 2.11.77

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
@@ -14099,7 +14099,13 @@ var IconText = {
14099
14099
  props: {},
14100
14100
  if: ({ props: props7 }) => props7.name || props7.icon
14101
14101
  },
14102
- text: ({ props: props7 }) => props7.text
14102
+ text: ({ props: props7 }) => props7.text,
14103
+ ".reversed": {
14104
+ props: { flow: "row-reverse" }
14105
+ },
14106
+ ".vertical": {
14107
+ props: { flow: "column" }
14108
+ }
14103
14109
  };
14104
14110
 
14105
14111
  // Button/index.js
@@ -14241,7 +14247,7 @@ var DialogFooter = {
14241
14247
  extend: Button,
14242
14248
  props: {
14243
14249
  theme: "primary @dark .color-only",
14244
- fontSize: "Z1",
14250
+ fontSize: "Z",
14245
14251
  textTransform: "uppercase",
14246
14252
  background: "transparent",
14247
14253
  "&": {
@@ -14265,18 +14271,59 @@ var DialogFooter = {
14265
14271
 
14266
14272
  // Datepicker/index.js
14267
14273
  var import_headless_datepicker = __toESM(require_headless_datepicker());
14268
- var calendar = new import_headless_datepicker.HeadlessDatepicker.Calendar({
14269
- calendarMode: "exact"
14270
- });
14271
- var extractMonthDays = (data) => {
14272
- const result = [];
14273
- data.weeks.forEach((week) => {
14274
- week.dates.forEach((date) => {
14275
- result.push(date);
14276
- });
14277
- });
14278
- return result;
14274
+
14275
+ // Datepicker/days.js
14276
+ var DatePickerDay = {
14277
+ extend: Button,
14278
+ state: true,
14279
+ props: ({ state, key }) => {
14280
+ const isSelected = state.parent.activeDay === parseInt(key) + 1;
14281
+ const gridColumnStart = 7 - state.parent.weekItems.weeks[0].dates.length;
14282
+ return {
14283
+ isSelected,
14284
+ textAlign: "center",
14285
+ fontSize: "Z1",
14286
+ round: "100%",
14287
+ height: "B1",
14288
+ aspectRatio: "1/1",
14289
+ lineHeight: ".9",
14290
+ background: "transparent",
14291
+ theme: "secondary @dark .color",
14292
+ text: parseInt(key) + 1,
14293
+ ":first-child": {
14294
+ style: { gridColumnStart }
14295
+ },
14296
+ ".isSelected": { theme: "primary" },
14297
+ "!isSelected": {
14298
+ ":hover": { theme: "secondary" },
14299
+ ":nth-child(7n-1), &:nth-child(7n)": { opacity: ".5" }
14300
+ }
14301
+ };
14302
+ },
14303
+ on: {
14304
+ click: (event, element, state) => {
14305
+ state.parent.parent.update({
14306
+ active: state.parse()
14307
+ });
14308
+ console.log(state);
14309
+ }
14310
+ }
14279
14311
  };
14312
+ var DatePickerGrid = {
14313
+ extend: Grid,
14314
+ props: {
14315
+ columns: "repeat(7, 1fr)",
14316
+ minWidth: "100%",
14317
+ gap: "W2",
14318
+ padding: "- Z"
14319
+ },
14320
+ childExtend: DatePickerDay,
14321
+ $setStateCollection: (el, s) => {
14322
+ return s.days;
14323
+ }
14324
+ };
14325
+
14326
+ // Datepicker/years.js
14280
14327
  var DatePickerYears = {
14281
14328
  tag: "aside",
14282
14329
  props: {
@@ -14362,6 +14409,8 @@ var DatePickerYears = {
14362
14409
  }
14363
14410
  }
14364
14411
  };
14412
+
14413
+ // Datepicker/months.js
14365
14414
  var DatePickerMonthsSlider = {
14366
14415
  extend: Flex,
14367
14416
  props: {
@@ -14450,6 +14499,8 @@ var DatePickerMonthsSlider = {
14450
14499
  },
14451
14500
  Button_right: { icon: "arrowRight" }
14452
14501
  };
14502
+
14503
+ // Datepicker/weekdays.js
14453
14504
  var DatePickerWeekDays = {
14454
14505
  extend: Grid,
14455
14506
  props: {
@@ -14479,54 +14530,19 @@ var DatePickerWeekDays = {
14479
14530
  { text: "Su" }
14480
14531
  ]
14481
14532
  };
14482
- var DatePickerDay = {
14483
- extend: Button,
14484
- state: true,
14485
- props: ({ state, key }) => {
14486
- const isSelected = state.parent.activeDay === parseInt(key) + 1;
14487
- const gridColumnStart = 7 - state.parent.weekItems.weeks[0].dates.length;
14488
- return {
14489
- isSelected,
14490
- textAlign: "center",
14491
- fontSize: "Z1",
14492
- round: "100%",
14493
- height: "B1",
14494
- aspectRatio: "1/1",
14495
- lineHeight: ".9",
14496
- background: "transparent",
14497
- theme: "secondary @dark .color",
14498
- text: parseInt(key) + 1,
14499
- ":first-child": {
14500
- style: { gridColumnStart }
14501
- },
14502
- ".isSelected": { theme: "primary" },
14503
- "!isSelected": {
14504
- ":hover": { theme: "secondary" },
14505
- ":nth-child(7n-1), &:nth-child(7n)": { opacity: ".5" }
14506
- }
14507
- };
14508
- },
14509
- on: {
14510
- click: (event, element, state) => {
14511
- state.parent.parent.update({
14512
- active: state.parse()
14513
- });
14514
- console.log(state);
14515
- }
14516
- }
14517
- };
14518
- var DatePickerGrid = {
14519
- extend: Grid,
14520
- props: {
14521
- columns: "repeat(7, 1fr)",
14522
- minWidth: "100%",
14523
- gap: "W2",
14524
- padding: "- Z"
14525
- },
14526
- childExtend: DatePickerDay,
14527
- $setStateCollection: (el, s) => {
14528
- return s.days;
14529
- }
14533
+
14534
+ // Datepicker/index.js
14535
+ var calendar = new import_headless_datepicker.HeadlessDatepicker.Calendar({
14536
+ calendarMode: "exact"
14537
+ });
14538
+ var extractMonthDays = (data) => {
14539
+ const result = [];
14540
+ data.weeks.forEach((week) => {
14541
+ week.dates.forEach((date) => {
14542
+ result.push(date);
14543
+ });
14544
+ });
14545
+ return result;
14530
14546
  };
14531
14547
  var monthNumbersContainer = {
14532
14548
  props: {
@@ -14576,7 +14592,7 @@ var monthNumbersContainer = {
14576
14592
  };
14577
14593
  var props = {
14578
14594
  yearRange: [1993, 2023],
14579
- maxHeight: "318px",
14595
+ maxHeight: "G+B",
14580
14596
  boxSize: "fit-content fit-content",
14581
14597
  style: {
14582
14598
  button: {
@@ -14862,25 +14878,12 @@ var templateDefault = {
14862
14878
  boxSize: "fit-content fit-content",
14863
14879
  ":hover": { background: "#252527" },
14864
14880
  input: {
14881
+ display: "none",
14865
14882
  ":checked + div": {
14866
- background: "#0474F2",
14883
+ theme: "primary",
14867
14884
  border: "none"
14868
14885
  },
14869
- ":checked + div > svg": { opacity: "1" },
14870
- display: "none"
14871
- },
14872
- checkbox: {
14873
- align: "center center",
14874
- border: "1px solid #E9E9EA",
14875
- boxSize: "B B",
14876
- round: "Y",
14877
- Icon: {
14878
- height: "Z Z2",
14879
- color: "white",
14880
- name: "check",
14881
- opacity: "0",
14882
- transition: "opacity .15s ease"
14883
- }
14886
+ ":checked + div > svg": { opacity: "1" }
14884
14887
  }
14885
14888
  };
14886
14889
  var Checkbox = {
@@ -14890,11 +14893,34 @@ var Checkbox = {
14890
14893
  attr: {
14891
14894
  type: "checkbox",
14892
14895
  checked: ({ parent }) => parent.props.checked
14896
+ },
14897
+ on: {
14898
+ render: ({ parent, node: node2 }) => {
14899
+ const { indeterminate } = parent.props;
14900
+ console.log(indeterminate);
14901
+ node2.indeterminate = indeterminate;
14902
+ },
14903
+ update: ({ parent, node: node2 }) => {
14904
+ const { indeterminate } = parent.props;
14905
+ console.log(indeterminate);
14906
+ node2.indeterminate = indeterminate;
14907
+ }
14893
14908
  }
14894
14909
  },
14895
- checkbox: {
14896
- extend: "Flex",
14897
- Icon: {}
14910
+ Flex: {
14911
+ props: {
14912
+ align: "center center",
14913
+ border: "1px solid #E9E9EA",
14914
+ boxSize: "B B",
14915
+ round: "Y"
14916
+ },
14917
+ Icon: {
14918
+ height: "Z Z2",
14919
+ color: "white",
14920
+ name: "check",
14921
+ opacity: "0",
14922
+ transition: "opacity .15s ease"
14923
+ }
14898
14924
  }
14899
14925
  };
14900
14926
  var CheckBoxWithLabel = {
@@ -14911,7 +14937,7 @@ var CheckBoxWithLabel = {
14911
14937
  // Form/Radio.js
14912
14938
  var templateDefault2 = {
14913
14939
  input: { ":checked + div > div": { opacity: "1" } },
14914
- checkbox: {
14940
+ Flex: {
14915
14941
  round: "100%",
14916
14942
  circle: {
14917
14943
  boxSize: "Y2 Y2",
@@ -14926,7 +14952,7 @@ var Radio = {
14926
14952
  extend: Checkbox,
14927
14953
  props: templateDefault2,
14928
14954
  input: { attr: { type: "radio" } },
14929
- checkbox: {
14955
+ Flex: {
14930
14956
  Icon: null,
14931
14957
  circle: {}
14932
14958
  }
@@ -14946,9 +14972,14 @@ var RadioWithLabel = {
14946
14972
  var templateDefault3 = {
14947
14973
  padding: "Y",
14948
14974
  round: "B",
14949
- input: { ":checked + div": { justifyContent: "flex-end", background: "#47FF09" } },
14975
+ input: {
14976
+ ":checked + div": {
14977
+ justifyContent: "flex-end",
14978
+ theme: "primary"
14979
+ }
14980
+ },
14950
14981
  ":hover > div": { opacity: "1" },
14951
- checkbox: {
14982
+ Flex: {
14952
14983
  boxSize: "B C",
14953
14984
  padding: "- W",
14954
14985
  round: "D",
@@ -14961,9 +14992,7 @@ var templateDefault3 = {
14961
14992
  boxSize: "A1 A1",
14962
14993
  round: "100%",
14963
14994
  background: "white",
14964
- style: {
14965
- boxShadow: "1px 1px 8px rgba(0, 0, 0, 0.2)"
14966
- }
14995
+ boxShadow: "1px, 1px, 8px, rgba(0, 0, 0, 0.2)"
14967
14996
  }
14968
14997
  }
14969
14998
  };
@@ -14971,7 +15000,7 @@ var ToggleSwitch = {
14971
15000
  extend: Checkbox,
14972
15001
  props: templateDefault3,
14973
15002
  input: {},
14974
- checkbox: {
15003
+ Flex: {
14975
15004
  Icon: null,
14976
15005
  circle: {}
14977
15006
  }
@@ -15668,14 +15697,16 @@ var Upload = {
15668
15697
  round: "A",
15669
15698
  cursor: "pointer",
15670
15699
  border: "1.6px, dashed, white 0.1",
15671
- padding: "B B2"
15700
+ padding: "B B2",
15701
+ Input: {
15702
+ position: "absolute",
15703
+ inset: "0 0 0 0",
15704
+ opacity: "0",
15705
+ visibility: "hidden"
15706
+ }
15672
15707
  },
15673
15708
  Input: {
15674
- type: "file",
15675
- position: "absolute",
15676
- inset: "0 0 0 0",
15677
- opacity: "0",
15678
- visibility: "hidden"
15709
+ type: "file"
15679
15710
  },
15680
15711
  Icon: {
15681
15712
  name: "upload",